Skip to content

Commit 4f315c3

Browse files
authored
minor fix on schema.py part (#1306)
The documentation already suggests importing ObjectType from graphene, graphene.ObjectType is not necessary while defining the Query class.
1 parent a53ded6 commit 4f315c3

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
@@ -151,7 +151,7 @@ Create ``cookbook/ingredients/schema.py`` and type the following:
151151
interfaces = (relay.Node, )
152152
153153
154-
class Query(graphene.ObjectType):
154+
class Query(ObjectType):
155155
category = relay.Node.Field(CategoryNode)
156156
all_categories = DjangoFilterConnectionField(CategoryNode)
157157

0 commit comments

Comments
 (0)