From 96f8f77d4df161802c709f0eb0d45b2b84d18e03 Mon Sep 17 00:00:00 2001 From: Liam O'Flynn Date: Tue, 24 Jul 2018 17:03:34 -0700 Subject: [PATCH] Ensure code example is fully functional Simple change, it took me a while to figure out why the documentation's code was throwing an AssertionError :) --- docs/tutorial-relay.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial-relay.rst b/docs/tutorial-relay.rst index f2502d72b..47e1286ec 100644 --- a/docs/tutorial-relay.rst +++ b/docs/tutorial-relay.rst @@ -147,7 +147,7 @@ Create ``cookbook/ingredients/schema.py`` and type the following: interfaces = (relay.Node, ) - class Query(object): + class Query(graphene.ObjectType): category = relay.Node.Field(CategoryNode) all_categories = DjangoFilterConnectionField(CategoryNode)