mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-11 12:16:58 +03:00
Corrected arguments in the mutate documentation.
This commit is contained in:
parent
9308e6db12
commit
14b9257ef6
|
@ -22,7 +22,7 @@ class CreatePerson(graphene.Mutation):
|
|||
person = graphene.Field('Person')
|
||||
|
||||
@classmethod
|
||||
def mutate(cls, args, info):
|
||||
def mutate(cls, instance, args, info):
|
||||
person = Person(name=args.get('name'))
|
||||
ok = True
|
||||
return CreatePerson(person=person, ok=ok)
|
||||
|
|
Loading…
Reference in New Issue
Block a user