From 6441d4bff79f2bf9f210cf7c63a12bd2450eb963 Mon Sep 17 00:00:00 2001 From: Mauricio Cortazar Date: Thu, 26 Apr 2018 22:57:14 -0500 Subject: [PATCH] ObjectType instead of AbstractType --- examples/cookbook/cookbook/recipes/schema.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)