mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-22 17:46:57 +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):
|
||||
try:
|
||||
payload.clientMutationId = input['clientMutationId']
|
||||
payload.client_mutation_id = input.get('clientMutationId')
|
||||
except:
|
||||
raise Exception((
|
||||
'Cannot set clientMutationId in the payload object {}'
|
||||
'Cannot set client_mutation_id in the payload object {}'
|
||||
).format(repr(payload)))
|
||||
return payload
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user