opwr / GraphQL

Pengenalan basic tentang GraphQL
https://graphql.org/
1 stars 0 forks source link

Generating a suitable client mutation ID for Facebook's mutation API is crucial to ensure the integrity and security of your API requests. #4

Closed opwr closed 2 hours ago

opwr commented 2 hours ago
          Generating a suitable client mutation ID for Facebook's mutation API is crucial to ensure the integrity and security of your API requests.

A client mutation ID is a unique identifier that Facebook uses to track and process mutations. It's essential to generate a client mutation ID that meets Facebook's requirements to avoid errors and ensure successful mutation execution.

Here's an example of how you can generate a suitable client mutation ID:

mutation { createPerson(input: { clientMutationId: "person-${UUID.randomUUID()}" }) { person { id name } } }

Hope this help you

Originally posted by @opwx in https://github.com/opwr/GraphQL/issues/3#issuecomment-2362252056

opwr commented 2 hours ago

Thanks, it worked bro. very helpful