Merge pull request #328 from SpaceK33z/patch-1

Docs: fix usage of deprecated `AbstractType`
This commit is contained in:
Syrus Akbary 2017-11-20 20:54:07 -08:00 committed by GitHub
commit 31679df08c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,7 +153,7 @@ Create ``cookbook/ingredients/schema.py`` and type the following:
model = Ingredient
class Query(graphene.AbstractType):
class Query(object):
all_categories = graphene.List(CategoryType)
all_ingredients = graphene.List(IngredientType)
@ -426,7 +426,7 @@ We can update our schema to support that, by adding new query for ``ingredient``
model = Ingredient
class Query(graphene.AbstractType):
class Query(object):
category = graphene.Field(CategoryType,
id=graphene.Int(),
name=graphene.String())