我看到了 clientMutationId
字段在 example-strong-typing文档。
mutation {
addComment(input:{clientMutationId: 1234, subjectId: "MDA6SXNzdWUyMjcyMDA2MTT=", body: "Looks good to me!"}) {
clientMutationId
commentEdge {
node {
body
repository {
id
name
nameWithOwner
}
issue {
number
}
}
}
}
}
什么clientMutationId
意思?我怎样才能生成它?
最佳答案
clientMutationId
与 GraphQL 没有直接关系,但与 graphql-relay 相关.
查询 Understanding Relay Mutations为了更好的解释。
clientMutationId. This ID is generated by the Relay client behind the scenes to track the mutation's progress.
关于graphql - github graphql api, "clientMutationId"是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51303530/