Skip to main content
Solved

What is "clientMutationId" used for?

  • November 4, 2021
  • 3 replies
  • 1680 views

ramongb

I see that “clientMutationId” is always needed as part of the GraphQL payload. But What is this for??

In the result from GraphQL always come back as NULL. In the Dev Docs says “A unique identifier for the client performing the mutation.” Can I register a Client for the miutation?

 

Thanks!

Best answer by Roberto Chavarria

Hey Ramon! You can think of this as more of an identifier in case you need to debug which of the queries went wrong. Together with whatever language you prefer to script in, you can make it dynamic and you’ll have improved your logs; 

This topic has been closed for replies.

3 replies

ricardo-borges
Pipefy Staff
  • Pipefy Staff
  • 10 replies
  • November 11, 2021

Hello Ramón!

Cliet Mutation Id is not required to run a mutation. That’s why when you don’t specify it, the result will return ‘null’:
 

However, if you name your mutation by specifying a ‘clientMutationId’ of your choice, it can be better for you to diferentiate the mutations you run, making for a better organization and reading in your technical logs:
 

 


ramongb
  • Author
  • Inspiring
  • 7 replies
  • November 11, 2021

Hello Reicado.. So any string I put in this field will be reflected as the name of the “person” making the mutation?


Roberto Chavarria
Pipefy Staff
Forum|alt.badge.img+5
  • Pipefy Staff
  • 46 replies
  • Answer
  • February 16, 2022

Hey Ramon! You can think of this as more of an identifier in case you need to debug which of the queries went wrong. Together with whatever language you prefer to script in, you can make it dynamic and you’ll have improved your logs;