Skip to content

Commit 205c177

Browse files
committed
Removed abstract type from examples.
1 parent 1e6b2a5 commit 205c177

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

examples/cookbook-plain/cookbook/ingredients/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Meta:
1414
model = Ingredient
1515

1616

17-
class Query(graphene.AbstractType):
17+
class Query(object):
1818
category = graphene.Field(CategoryType,
1919
id=graphene.Int(),
2020
name=graphene.String())

examples/cookbook-plain/cookbook/recipes/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Meta:
1414
model = RecipeIngredient
1515

1616

17-
class Query(graphene.AbstractType):
17+
class Query(object):
1818
recipe = graphene.Field(RecipeType,
1919
id=graphene.Int(),
2020
title=graphene.String())

examples/cookbook/cookbook/ingredients/schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from cookbook.ingredients.models import Category, Ingredient
2-
from graphene import AbstractType, Node
2+
from graphene import Node
33
from graphene_django.filter import DjangoFilterConnectionField
44
from graphene_django.types import DjangoObjectType
55

@@ -28,7 +28,7 @@ class Meta:
2828
}
2929

3030

31-
class Query(AbstractType):
31+
class Query(object):
3232
category = Node.Field(CategoryNode)
3333
all_categories = DjangoFilterConnectionField(CategoryNode)
3434

examples/cookbook/cookbook/recipes/schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from cookbook.recipes.models import Recipe, RecipeIngredient
2-
from graphene import AbstractType, Node
2+
from graphene import Node
33
from graphene_django.filter import DjangoFilterConnectionField
44
from graphene_django.types import DjangoObjectType
55

@@ -24,7 +24,7 @@ class Meta:
2424
}
2525

2626

27-
class Query(AbstractType):
27+
class Query(object):
2828
recipe = Node.Field(RecipeNode)
2929
all_recipes = DjangoFilterConnectionField(RecipeNode)
3030

0 commit comments

Comments
 (0)