Skip to content

Commit c0eb7bf

Browse files
Arun S KumarArun S Kumar
authored andcommitted
Merge remote-tracking branch 'remotes/origin/feat-mongoengine-connection-field-filters' into feat-mongoengine-connection-field-filters
# Conflicts: # graphene_mongo/fields.py # graphene_mongo/tests/models.py # graphene_mongo/tests/test_relay_query.py
1 parent 324b936 commit c0eb7bf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

graphene_mongo/fields.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from graphene.relay import ConnectionField
99
from graphene.types.argument import to_arguments
1010
from graphene.types.dynamic import Dynamic
11-
from graphene.types.structures import Structure
11+
from graphene.types.structures import Structure, List
1212
from graphql_relay.connection.arrayconnection import connection_from_list_slice
1313

1414
from .advanced_types import (
@@ -81,10 +81,11 @@ def is_filterable(k):
8181
converted = convert_mongoengine_field(getattr(self.model, k), self.registry)
8282
except MongoEngineConversionError:
8383
return False
84-
if isinstance(converted, (ConnectionField, Dynamic)):
84+
if isinstance(converted, (ConnectionField, Dynamic, List)):
8585
return False
8686
if callable(getattr(converted, 'type', None)) and \
87-
isinstance(converted.type(), (FileFieldType, PointFieldType, MultiPolygonFieldType, graphene.Union)):
87+
isinstance(converted.type(),
88+
(FileFieldType, PointFieldType, MultiPolygonFieldType, graphene.Union)):
8889
return False
8990
return True
9091

0 commit comments

Comments
 (0)