mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-13 17:52:19 +03:00
Merge 6441d4bff7
into 1e6b2a569e
This commit is contained in:
commit
7507bb5a07
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user