title: How to make a foreach request in Apollo GraphQL?
body: <p>I have a blog in javascript and I'm using Apollo GraphQL to save my data. I intend to make a list with six posts of all categories. Like this:</p>
  <pre><code>[
    technology: [
      post1,
      post2,
      ...
    ],
    cook: [
      post1,
      post2,
      ...
    ],
    ...
  ]
  
  </code></pre>
  <p>But I couldn't. I thought in take all categories's id's and make a big request, like this:</p>
  <pre><code>{
    firstCategory: allPosts(where: {category: &quot;firstId&quot;}, first: 6) {
      ...fields
    }
  
    secondCategory: allPosts(where: {category: &quot;secondId&quot;}, first: 6) {
      ...fields
    }
  }
  </code></pre>
  <p>But if I add a new category, I must change my code.</p>