graphql - github graphql api,“clientMutationId”是什么意思?
问题描述
我在示例强类型文档中看到了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有直接关系。
检查了解中继突变以获得更好的解释。
客户端突变 ID。此 ID 由 Relay 客户端在后台生成,用于跟踪突变的进度。
推荐阅读
- r-markdown - 如何从 r 中的 rmarkdown 针织文件中删除背景颜色?
- swiftui - 如何在swiftui中删除绿色多余的空间
- python - 计算 pandas 中跨多个列的字符串实例
- node.js - 为什么 Heroku 仅在我也在本地运行节点 app.js 时才起作用?
- python - Pymongo 对列表的不区分大小写的正则表达式查询
- r - 如何在 R 中的数字系统之间进行转换?
- python - Python Calculator (time) 似乎给出了不正确的答案
- r - 如何在 plot_ly 饼图中删除/更改值中的分隔符?
- c# - 如何使用不同的方法将类中的变量中的数字减少到 0
- vue.js - Vuejs:如何仅从 vuex 存储对象提交特定的表单属性