Skip to content

Commit 75bf398

Browse files
quorth0njkimbo
authored andcommitted
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 :)
1 parent ae126a6 commit 75bf398

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorial-relay.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Create ``cookbook/ingredients/schema.py`` and type the following:
147147
interfaces = (relay.Node, )
148148
149149
150-
class Query(object):
150+
class Query(graphene.ObjectType):
151151
category = relay.Node.Field(CategoryNode)
152152
all_categories = DjangoFilterConnectionField(CategoryNode)
153153

0 commit comments

Comments
 (0)