Docs: fix usage of deprecated AbstractType

A tutorial still used `graphene.AbstractType` instead of `object`, which leads to a [deprecation warning](https://github.com/graphql-python/graphene/blob/master/UPGRADE-v2.0.md#abstracttype-deprecated).
This commit is contained in:
Kees Kluskens 2017-11-18 22:10:39 +01:00 committed by GitHub
parent 5661db88d1
commit 70a6c72751
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())