Skip to content

Commit 8f21a80

Browse files
committed
Add list_length to connection in default_resolver
1 parent c98b33a commit 8f21a80

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

graphene_mongo/fields.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ def default_resolver(self, _root, info, **args):
161161
pageinfo_type=PageInfo,
162162
)
163163
connection.iterable = objs
164+
connection.list_length = list_length
164165
return connection
165166

166167
def chained_resolver(self, resolver, root, info, **args):

0 commit comments

Comments
 (0)