diff --git a/examples/cookbook/cookbook/recipes/schema.py b/examples/cookbook/cookbook/recipes/schema.py index 35a21de..3383093 100644 --- a/examples/cookbook/cookbook/recipes/schema.py +++ b/examples/cookbook/cookbook/recipes/schema.py @@ -1,5 +1,5 @@ from cookbook.recipes.models import Recipe, RecipeIngredient -from graphene import AbstractType, Node +from graphene import ObjectType, Node from graphene_django.filter import DjangoFilterConnectionField from graphene_django.types import DjangoObjectType @@ -24,7 +24,7 @@ class RecipeIngredientNode(DjangoObjectType): } -class Query(AbstractType): +class Query(ObjectType): recipe = Node.Field(RecipeNode) all_recipes = DjangoFilterConnectionField(RecipeNode)