Merge pull request #113 from craiga/master

Fixing issues I had running through the tutorial
This commit is contained in:
Syrus Akbary 2017-02-17 10:32:40 -08:00 committed by GitHub
commit 8649ffb433

View File

@ -90,7 +90,7 @@ Create ``cookbook/ingredients/schema.py`` and type the following:
from graphene_django import DjangoObjectType from graphene_django import DjangoObjectType
from graphene_django.filter import DjangoFilterConnectionField from graphene_django.filter import DjangoFilterConnectionField
from cookbook.ingredients.models import Category, Ingredient from ingredients.models import Category, Ingredient
# Graphene will automatically map the Category model's fields onto the CategoryNode. # Graphene will automatically map the Category model's fields onto the CategoryNode.
@ -145,10 +145,10 @@ Create the parent project-level ``cookbook/schema.py``:
import graphene import graphene
import cookbook.ingredients.schema import ingredients.schema
class Query(cookbook.ingredients.schema.Query, graphene.ObjectType): class Query(ingredients.schema.Query, graphene.ObjectType):
# This class will inherit from multiple Queries # This class will inherit from multiple Queries
# as we begin to add more apps to our project # as we begin to add more apps to our project
pass pass
@ -276,7 +276,7 @@ from the command line.
Starting development server at http://127.0.0.1:8000/ Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C. Quit the server with CONTROL-C.
Go to `localhost:8000/graphiql <http://localhost:8000/graphiql>`__ and Go to `localhost:8000/graphql <http://localhost:8000/graphql>`__ and
type your first query! type your first query!
.. code:: .. code::