Skip to content

Commit ea669e7

Browse files
committed
Fix Mutations Relay example imports
Per comment here: graphql-python/graphene-django#657 (comment)
1 parent 0c1c106 commit ea669e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/mutations.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,9 @@ You can use relay with mutations. A Relay mutation must inherit from
199199

200200
.. code:: python
201201
202-
import graphene import relay, DjangoObjectType
202+
import graphene
203+
from graphene import relay
204+
from graphene_django import DjangoObjectType
203205
from graphql_relay import from_global_id
204206
205207
from .queries import QuestionType

0 commit comments

Comments
 (0)