mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-23 01:57:08 +03:00
Merge pull request #328 from SpaceK33z/patch-1
Docs: fix usage of deprecated `AbstractType`
This commit is contained in:
commit
31679df08c
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue
Block a user