From 4f315c365d36c54b0803a9a029d534ae3bf03fd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20Y=2E=20Er?= Date: Thu, 22 Sep 2022 21:10:52 +0300 Subject: [PATCH] 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. --- docs/tutorial-relay.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial-relay.rst b/docs/tutorial-relay.rst index 3de9022..a27e255 100644 --- a/docs/tutorial-relay.rst +++ b/docs/tutorial-relay.rst @@ -151,7 +151,7 @@ Create ``cookbook/ingredients/schema.py`` and type the following: interfaces = (relay.Node, ) - class Query(graphene.ObjectType): + class Query(ObjectType): category = relay.Node.Field(CategoryNode) all_categories = DjangoFilterConnectionField(CategoryNode)