Skip to content

Commit 61c8592

Browse files
Update converter.py
convert_field_to_dynamic - return added for mongoengine.ReferenceField
1 parent 3b44375 commit 61c8592

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphene_mongo/converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def dynamic_type():
185185
if not _type:
186186
return None
187187
elif isinstance(field, mongoengine.ReferenceField):
188-
graphene.Field(_type, resolver=reference_resolver,
188+
return graphene.Field(_type, resolver=reference_resolver,
189189
description=get_field_description(field, registry))
190190
elif isinstance(field, mongoengine.CachedReferenceField):
191191
return graphene.Field(_type, resolver=cached_reference_resolver,

0 commit comments

Comments
 (0)