title: How to batch GitHub GraphQL API queries?
body: <p>How can multiple queries be batched into a single request to GitHub's GraphQL API?</p>
  
  <p>For example, how would you batch these 2 queries into a single request and receive a single response? And would this technique work with many more queries (say 200)?</p>
  
  <pre><code>{
    repositoryOwner(login:"rails") {
      repository(name:"rails") {
        description
        homepageURL
      }
    }
  }
  
  {
    repositoryOwner(login:"github") {
      repository(name:"graphql-client") {
        description
        homepageURL
      }
    }
  }
  </code></pre>
  
  <p>(The GitHub GraphQL API can be experimented with at <a href="https://developer.github.com/early-access/graphql/explorer/" rel="nofollow">https://developer.github.com/early-access/graphql/explorer/</a>)</p>