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 0f93fb9 commit 283e727Copy full SHA for 283e727
graphene_mongo/fields.py
@@ -66,7 +66,8 @@ def args(self, args):
66
@property
67
def default_filter_args(self):
68
def is_filterable(kv):
69
- return hasattr(kv[1], '_type') and hasattr(kv[1]._type, '_of_type')
+ return hasattr(kv[1], '_type') \
70
+ and callable(getattr(kv[1]._type, '_of_type', None))
71
72
return reduce(
73
lambda r, kv: r.update({kv[0]: kv[1]._type._of_type()}) or r if is_filterable(kv) else r,
0 commit comments