Ensure code example is fully functional

Simple change, it took me a while to figure out why the documentation's code was throwing an AssertionError :)
This commit is contained in:
Liam O'Flynn 2018-07-24 17:03:34 -07:00 committed by GitHub
parent 52d14f3b8a
commit 96f8f77d4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,7 +147,7 @@ Create ``cookbook/ingredients/schema.py`` and type the following:
interfaces = (relay.Node, ) interfaces = (relay.Node, )
class Query(object): class Query(graphene.ObjectType):
category = relay.Node.Field(CategoryNode) category = relay.Node.Field(CategoryNode)
all_categories = DjangoFilterConnectionField(CategoryNode) all_categories = DjangoFilterConnectionField(CategoryNode)