【发布时间】:2017-02-01 16:16:42
【问题描述】:
如何将多个查询批处理成对 GitHub 的 GraphQL API 的单个请求?
例如,您如何将这 2 个查询批处理为一个请求并接收一个响应?这种技术是否适用于更多查询(比如 200 个)?
{
repositoryOwner(login:"rails") {
repository(name:"rails") {
description
homepageURL
}
}
}
{
repositoryOwner(login:"github") {
repository(name:"graphql-client") {
description
homepageURL
}
}
}
(可以在https://developer.github.com/early-access/graphql/explorer/ 试用 GitHub GraphQL API)
【问题讨论】:
标签: github-api graphql