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.
This commit is contained in:
Yiğit Y. Er 2022-09-22 21:10:52 +03:00 committed by GitHub
parent a53ded611b
commit 4f315c365d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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