mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-02 20:54:16 +03:00
Merge pull request #77 from BillyBarbaro/master
Changed mutation documentation in reference to Issue #76
This commit is contained in:
commit
a7c28f26ad
|
@ -22,7 +22,7 @@ class CreatePerson(graphene.Mutation):
|
||||||
person = graphene.Field('Person')
|
person = graphene.Field('Person')
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def mutate(cls, args, info):
|
def mutate(cls, instance, args, info):
|
||||||
person = Person(name=args.get('name'))
|
person = Person(name=args.get('name'))
|
||||||
ok = True
|
ok = True
|
||||||
return CreatePerson(person=person, ok=ok)
|
return CreatePerson(person=person, ok=ok)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user