mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-26 11:33:44 +03:00
README: Update resolve_users() example signature
This commit is contained in:
parent
d7c160c3b0
commit
90d84e8be9
|
@ -67,7 +67,7 @@ class User(DjangoObjectType):
|
||||||
class Query(graphene.ObjectType):
|
class Query(graphene.ObjectType):
|
||||||
users = graphene.List(User)
|
users = graphene.List(User)
|
||||||
|
|
||||||
def resolve_users(self):
|
def resolve_users(self, info, **kwargs):
|
||||||
return UserModel.objects.all()
|
return UserModel.objects.all()
|
||||||
|
|
||||||
schema = graphene.Schema(query=Query)
|
schema = graphene.Schema(query=Query)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user