github graphql api,什么是“clientMutationId"?意思是? [英] github graphql api, what does "clientMutationId" mean?

查看:23
本文介绍了github graphql api,什么是“clientMutationId"?意思是?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 example-strong-typing 文档.

I saw clientMutationId field in example-strong-typing documentation.

mutation {
  addComment(input:{clientMutationId: 1234, subjectId: "MDA6SXNzdWUyMjcyMDA2MTT=", body: "Looks good to me!"}) {
    clientMutationId
    commentEdge {
      node {
        body
        repository {
          id
          name
          nameWithOwner
        }
        issue {
          number
        }
      }
    }
  }
}

clientMutationId 是什么意思?我怎样才能生成它?

what does clientMutationId mean? How can I generate it?

推荐答案

clientMutationId 与 GraphQL 没有直接关系,但与 graphql-relay.

clientMutationId is not directly related with GraphQL but it is with graphql-relay.

查看了解中继突变以获得更好的解释.

Check Understanding Relay Mutations for a better explanation.

clientMutationId.此 ID 由 Relay 客户端在幕后生成,用于跟踪变异的进度.

这篇关于github graphql api,什么是“clientMutationId"?意思是?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆