Ensure code example is fully functional (#477)

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 2019-03-19 13:22:04 -07:00 committed by Jonathan Kim
parent ae126a6dc3
commit 75bf398523

View File

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