mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-06-14 10:33:11 +03:00
Fix test_should_preserve_prefetch_related
Connection resolvers have access to pagination arguments.
This commit is contained in:
parent
d6fd3fc4cc
commit
140ad42e58
|
@ -1083,7 +1083,7 @@ def test_should_preserve_prefetch_related(django_assert_num_queries):
|
|||
class Query(graphene.ObjectType):
|
||||
films = DjangoConnectionField(FilmType)
|
||||
|
||||
def resolve_films(root, info):
|
||||
def resolve_films(root, info, **args):
|
||||
qs = Film.objects.prefetch_related("reporters")
|
||||
return qs
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user