mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-02-06 22:50:34 +03:00
Improved cookbook
This commit is contained in:
parent
787ba73255
commit
f6684ca92d
|
@ -3,8 +3,6 @@ import graphene
|
||||||
|
|
||||||
from graphene_django.debug import DjangoDebug
|
from graphene_django.debug import DjangoDebug
|
||||||
|
|
||||||
# print cookbook.ingredients.schema.Query._meta.graphql_type.get_fields()['allIngredients'].args
|
|
||||||
|
|
||||||
|
|
||||||
class Query(cookbook.ingredients.schema.Query, graphene.ObjectType):
|
class Query(cookbook.ingredients.schema.Query, graphene.ObjectType):
|
||||||
debug = graphene.Field(DjangoDebug, name='__debug')
|
debug = graphene.Field(DjangoDebug, name='__debug')
|
||||||
|
|
|
@ -55,7 +55,10 @@ MIDDLEWARE_CLASSES = [
|
||||||
]
|
]
|
||||||
|
|
||||||
GRAPHENE = {
|
GRAPHENE = {
|
||||||
'SCHEMA': 'cookbook.schema.schema'
|
'SCHEMA': 'cookbook.schema.schema',
|
||||||
|
'MIDDLEWARE': (
|
||||||
|
'graphene_django.debug.DjangoDebugMiddleware',
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
ROOT_URLCONF = 'cookbook.urls'
|
ROOT_URLCONF = 'cookbook.urls'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user