README: Update resolve_users() example signature

This commit is contained in:
Pi Delport 2017-11-21 15:10:52 +02:00 committed by GitHub
parent d7c160c3b0
commit 90d84e8be9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,7 @@ class User(DjangoObjectType):
class Query(graphene.ObjectType):
users = graphene.List(User)
def resolve_users(self):
def resolve_users(self, info, **kwargs):
return UserModel.objects.all()
schema = graphene.Schema(query=Query)