githubgraphqlapi,"clientMutationId"是什么意思?
github graphql api, what does "clientMutationId" mean?
我在 example-strong-typing 文档中看到 clientMutationId
字段。
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.
我在 example-strong-typing 文档中看到 clientMutationId
字段。
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.