Skip to content

Commit

Permalink
Added description to relationships
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Dougherty committed Apr 2, 2019
1 parent 6a96d37 commit e87ef28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphene_sqlalchemy/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def dynamic_type():
elif direction in (interfaces.ONETOMANY, interfaces.MANYTOMANY):
if _type._meta.connection:
return createConnectionField(_type._meta.connection)
return Field(List(_type))
return Field(List(_type), description=getattr(relationship, "doc", None))

return Dynamic(dynamic_type)

Expand Down

0 comments on commit e87ef28

Please sign in to comment.