title: graphql - combining results from multiple queries into one array
body: <p>I am using graphQL to perform a search across multiple mongoDB collections and API's by combining queries. All queries return a result type of</p>
  
  <pre><code>{
    _id: string; 
    name: string; 
    type: string;
  }
  </code></pre>
  
  <p>Is there any way to flatten the data into a single array?</p>
  
  <p><strong>Combined query example:</strong></p>
  
  <pre><code>query searchAll {
      books(input: {text: "e"}) {
          _id
          name
          type
      }
      magazines(input: {text: "e"}) {
          _id
          name
          type
      }
  }
  </code></pre>
  
  <p><strong>Response currently looks like:</strong> </p>
  
  <pre><code>{"data": {
          "books": [
              {
                  "_id": "5a8ac759c25b7235ffdc6888",
                  "name": "someBook",
                  "type": "book"
              }
          ],
          "magazines": [
              {
                  "_id": "5a87005bc25b7235ffdc4bdf",
                  "name": "someMagazine-1",
                  "type": "magazine"
              },
              {
                  "_id": "5a870067c25b7235ffdc4be4",
                  "name": "someMagazine-2",
                  "type": "client"
              }
          ]
      }
  }
  </code></pre>
  
  <p><strong>Desired response:</strong></p>
  
  <pre><code>{"data": {
      "results": [
              {
                  "_id": "5a8ac759c25b7235ffdc6888",
                  "name": "someBook",
                  "type": "book"
              },
              {
                  "_id": "5a87005bc25b7235ffdc4bdf",
                  "name": "someMagazine-1",
                  "type": "magazine"
              },
              {
                  "_id": "5a870067c25b7235ffdc4be4",
                  "name": "someMagazine-2",
                  "type": "client"
              }
          ]
      }
  }
  </code></pre>