Avoid: AssertionError at /graphql

This avoids the confusing error of: AssertionError at /graphql
This commit is contained in:
Cristian 2020-02-14 12:03:37 -05:00 committed by GitHub
parent bbf119cd3b
commit 0c947d7005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,9 +59,10 @@ The most basic ``schema.py`` looks like this:
.. code:: python .. code:: python
import graphene import graphene
from graphene_django.debug import DjangoDebug
class Query(graphene.ObjectType): class Query(graphene.ObjectType):
pass debug = graphene.Field(DjangoDebug, name="_debug")
schema = graphene.Schema(query=Query) schema = graphene.Schema(query=Query)