mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-10 19:57:15 +03:00
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:
parent
ae126a6dc3
commit
75bf398523
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user