Skip to main content
Solved

What is "clientMutationId" used for?

  • November 4, 2021
  • 3 replies
  • 1575 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; 

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

3 replies

ricardo-borges
Pipefy Staff

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
  • New Member
  • 6 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

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; 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings