From 3a198d052acc01a8469dc03d0c0d798612830be2 Mon Sep 17 00:00:00 2001 From: Chapman Siu Date: Wed, 1 Mar 2017 22:54:06 +1100 Subject: [PATCH] fixed indent in mutation docs --- docs/types/mutations.rst | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/types/mutations.rst b/docs/types/mutations.rst index 11211593..d7f590a4 100644 --- a/docs/types/mutations.rst +++ b/docs/types/mutations.rst @@ -10,20 +10,20 @@ This example defines a Mutation: .. code:: python -import graphene + import graphene -class CreatePerson(graphene.Mutation): - class Input: - name = graphene.String() + class CreatePerson(graphene.Mutation): + class Input: + name = graphene.String() - ok = graphene.Boolean() - person = graphene.Field(lambda: Person) + ok = graphene.Boolean() + person = graphene.Field(lambda: Person) - @staticmethod - def mutate(root, args, context, info): - person = Person(name=args.get('name')) - ok = True - return CreatePerson(person=person, ok=ok) + @staticmethod + def mutate(root, args, context, info): + person = Person(name=args.get('name')) + ok = True + return CreatePerson(person=person, ok=ok) **person** and **ok** are the output fields of the Mutation when is resolved.