We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78c36f0 commit dd57382Copy full SHA for dd57382
graphene_mongo/fields.py
@@ -93,12 +93,15 @@ def is_filterable(k):
93
return False
94
return True
95
96
- def get_type(v):
97
- if isinstance(v.type, Structure):
98
- return v.type.of_type()
99
- return v.type()
+ def get_filter_type(_type):
+ """
+ Returns the scalar type.
100
+ if isinstance(_type, Structure):
101
+ return get_filter_type(_type.of_type)
102
+ return _type()
103
- return {k: get_type(v) for k, v in items if is_filterable(k)}
104
+ return {k: get_filter_type(v.type) for k, v in items if is_filterable(k)}
105
106
@property
107
def field_args(self):
0 commit comments