Merge pull request #77 from BillyBarbaro/master

Changed mutation documentation in reference to Issue #76
This commit is contained in:
Syrus Akbary 2016-01-09 11:41:24 +01:00
commit a7c28f26ad

View File

@ -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)