GitHub GraphQL。通过一次批量请求获取存储库列表

GitHub GraphQL. Get list of repositories with one batch request

我有一个 github 存储库 URL 的动态列表(假设大小小于 100)。我想使用 GraphQL 查询他们每个人的特定信息。

我可以批量请求吗?

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

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