We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bf25fb commit 3010f01Copy full SHA for 3010f01
graphene_sqlalchemy/converter.py
@@ -32,10 +32,9 @@ def dynamic_type():
32
_type = registry.get_type_for_model(model)
33
if not _type:
34
return None
35
- if (direction == interfaces.MANYTOONE or not relationship.uselist):
+ if direction == interfaces.MANYTOONE or not relationship.uselist:
36
return Field(_type)
37
- elif (direction == interfaces.ONETOMANY or
38
- direction == interfaces.MANYTOMANY):
+ elif direction in (interfaces.ONETOMANY, interfaces.MANYTOMANY):
39
if _type._meta.connection:
40
return createConnectionField(_type)
41
return Field(List(_type))
0 commit comments