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.
2 parents 7a23ffe + ff1e28a commit 1d6a933Copy full SHA for 1d6a933
graphene_mongo/types.py
@@ -35,6 +35,8 @@ def construct_fields(model, registry, only_fields, exclude_fields):
35
# in there. Or when we exclude this field in exclude_fields
36
continue
37
if isinstance(field, mongoengine.ListField):
38
+ if not field.field:
39
+ continue
40
# Take care of list of self-reference.
41
document_type_obj = field.field.__dict__.get('document_type_obj', None)
42
if document_type_obj == model._class_name \
0 commit comments