Merge branch 'master' of github.com:graphql-python/graphene-django

This commit is contained in:
Syrus Akbary 2016-09-19 22:04:29 -07:00
commit 9539d012dd
2 changed files with 2 additions and 2 deletions

View File

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

View File

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