Skip to content

Commit 3a198d0

Browse files
committed
fixed indent in mutation docs
1 parent ad251e9 commit 3a198d0

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docs/types/mutations.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ This example defines a Mutation:
1010

1111
.. code:: python
1212
13-
import graphene
13+
import graphene
1414
15-
class CreatePerson(graphene.Mutation):
16-
class Input:
17-
name = graphene.String()
15+
class CreatePerson(graphene.Mutation):
16+
class Input:
17+
name = graphene.String()
1818
19-
ok = graphene.Boolean()
20-
person = graphene.Field(lambda: Person)
19+
ok = graphene.Boolean()
20+
person = graphene.Field(lambda: Person)
2121
22-
@staticmethod
23-
def mutate(root, args, context, info):
24-
person = Person(name=args.get('name'))
25-
ok = True
26-
return CreatePerson(person=person, ok=ok)
22+
@staticmethod
23+
def mutate(root, args, context, info):
24+
person = Person(name=args.get('name'))
25+
ok = True
26+
return CreatePerson(person=person, ok=ok)
2727
2828
**person** and **ok** are the output fields of the Mutation when is
2929
resolved.

0 commit comments

Comments
 (0)