Skip to content

Commit 97abb9d

Browse files
authored
Merge pull request #1381 from belkka/patch-1
Avoid ambiguity in graphene.Mutation docstring [documentation]
2 parents 57f3aa3 + b274a60 commit 97abb9d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

graphene/types/mutation.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,21 @@ class Mutation(ObjectType):
2929
3030
.. code:: python
3131
32-
from graphene import Mutation, ObjectType, String, Boolean, Field
32+
import graphene
3333
34-
class CreatePerson(Mutation):
34+
class CreatePerson(graphene.Mutation):
3535
class Arguments:
36-
name = String()
36+
name = graphene.String()
3737
38-
ok = Boolean()
39-
person = Field(Person)
38+
ok = graphene.Boolean()
39+
person = graphene.Field(Person)
4040
4141
def mutate(parent, info, name):
4242
person = Person(name=name)
4343
ok = True
4444
return CreatePerson(person=person, ok=ok)
4545
46-
class Mutation(ObjectType):
46+
class Mutation(graphene.ObjectType):
4747
create_person = CreatePerson.Field()
4848
4949
Meta class options (optional):

0 commit comments

Comments
 (0)