From 0c947d70059d555334de9d2abbef609c15213873 Mon Sep 17 00:00:00 2001 From: Cristian Date: Fri, 14 Feb 2020 12:03:37 -0500 Subject: [PATCH] Avoid: AssertionError at /graphql This avoids the confusing error of: AssertionError at /graphql --- docs/installation.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/installation.rst b/docs/installation.rst index 52f2520..2aafc54 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -59,9 +59,10 @@ The most basic ``schema.py`` looks like this: .. code:: python import graphene + from graphene_django.debug import DjangoDebug class Query(graphene.ObjectType): - pass + debug = graphene.Field(DjangoDebug, name="_debug") schema = graphene.Schema(query=Query)