graphql - github graphql api, "clientMutationId"是什么意思?

标签 graphql github-api relay github-graphql graphql-relay

我看到了 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/

相关文章:

graphql - Apollo GraphQL 中的命令式是什么意思?

GitHub Graphql : Getting sponsor tier information for the sponsors of a user

javascript - 设置数据加载器中键的生存时间

javascript - 停止继电器: Query Renderer in reloading data for certain setStates

clojure - 带联合的查询组合如何与通过 Om Next 中的 props 传递的父子树配合使用

express - 使用 type-graphql typeorm 和 dataloader 处理一对多的最佳方法

bash - 如何通过命令行更新 GitHub 上拉取请求中的第一条评论?

python - github 中私有(private)组织的所有存储库列表

javascript - MeteorJs - http 调用中出现错误

centos - Sendmail 中继问题