Improved relay ClientIDMutation

This commit is contained in:
Syrus Akbary 2016-08-14 11:05:40 -07:00
parent 26f364de0b
commit 29e5502e0e

View File

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