This commit is contained in:
Syrus Akbary 2016-09-19 09:49:25 -07:00 committed by GitHub
parent a4306c890b
commit 6db3f19896

View File

@ -44,7 +44,7 @@ class Query(graphene.ObjectType):
def resolve_users(self): def resolve_users(self):
return UserModel.objects.all() return UserModel.objects.all()
schema = graphene.Schema(query=QueryRoot) schema = graphene.Schema(query=Query)
``` ```
Then you can simply query the schema: Then you can simply query the schema: