mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-23 01:56:54 +03:00
Improved relay ClientIDMutation
This commit is contained in:
parent
26f364de0b
commit
29e5502e0e
|
@ -42,10 +42,10 @@ class ClientIDMutation(six.with_metaclass(ClientIDMutationMeta, ObjectType)):
|
||||||
|
|
||||||
def on_resolve(payload):
|
def on_resolve(payload):
|
||||||
try:
|
try:
|
||||||
payload.clientMutationId = input['clientMutationId']
|
payload.client_mutation_id = input.get('clientMutationId')
|
||||||
except:
|
except:
|
||||||
raise Exception((
|
raise Exception((
|
||||||
'Cannot set clientMutationId in the payload object {}'
|
'Cannot set client_mutation_id in the payload object {}'
|
||||||
).format(repr(payload)))
|
).format(repr(payload)))
|
||||||
return payload
|
return payload
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user