Skip to content

Commit 99723c8

Browse files
Merge branch 'feat-pagination-performance'
2 parents bd96932 + 6cb19ec commit 99723c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphene_mongo/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def default_resolver(self, _root, info, required_fields=list(), **args):
280280
if not info.context:
281281
info.context = Context()
282282
info.context.queryset = self.get_queryset(self.model, info, required_fields, **args)
283-
elif _root is None:
283+
else:
284284
count = self.get_queryset(self.model, info, required_fields, **args).count()
285285
if count != 0:
286286
skip, limit, reverse = find_skip_and_limit(first=first, after=after, last=last, before=before,

0 commit comments

Comments
 (0)