Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SpinyCucumber committed Jan 1, 2022
1 parent 6e0d7ae commit 8f9deb3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions graphene_mongo/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@ def is_filterable(k):
),
):
return False
if isinstance(converted, (graphene.List)) and issubclass(
getattr(converted, "_of_type", None), graphene.Union
# Fix to https://github.com/graphql-python/graphene-mongo/issues/162
if isinstance(converted, (graphene.List)) and not issubclass(
getattr(converted, "_of_type", None), graphene.Scalar
):
return False

Expand Down

0 comments on commit 8f9deb3

Please sign in to comment.