graphene-django icon indicating copy to clipboard operation
graphene-django copied to clipboard

Update using `client_mutation_id` for SerializerMutation

Open KingNonso opened this issue 4 years ago • 1 comments

When using relay, it overrides the id of the model and provides a global id. This id is often what is available when making queries. However, it is unusable to update the model object. This seeks to make the client_mutation_id usable for updating the SerializerMutation

KingNonso avatar Aug 11 '21 13:08 KingNonso

I don't know how SerializerMutation is implemented, but using clientMutationId for identifying model to update is not how it was meant to be used.

clientMutationId is no-longer in the Relay specification, but here is an article explaining the purpose of clientMutationId.

Merging this will be a breaking change ⚠️

wodCZ avatar Aug 12 '21 09:08 wodCZ