【问题标题】:GitHub GraphQL. Get list of repositories with one batch requestGitHub GraphQL。通过一个批处理请求获取存储库列表
【发布时间】:2018-10-17 18:18:44
【问题描述】:

我有一个 github 存储库 url 的动态列表(假设大小为

我可以通过一个批处理请求来完成吗?

【问题讨论】:

    标签: github graphql github-api


    【解决方案1】:

    好的,我找到了解决方案。仅当您知道每个存储库的全局 node_id 时才有效,这绝对是我的情况。

    query($ids: [ID!]!) {
       nodes(ids: $ids) {
          ... on Repository {
             name
             description
          }
       }
    }
    

    【讨论】:

      猜你喜欢
      • 2018-06-25
      • 2022-11-09
      • 2020-06-03
      • 1970-01-01
      • 2020-04-11
      • 2018-10-04
      • 1970-01-01
      • 2018-08-30
      • 1970-01-01
      相关资源
      最近更新 更多