Passing Multiple Arguments to GraphQL Query : <p><strong>First thing</strong></p>

<p>Appreciate this may be a bit of a stupid question, but I'm working with GraphQL having come from the RDF/Linked Data world and having a lot of trouble getting my head around how I would return a set. Essentially I want something where I could select, let's say a list of <code>Characters</code> (using the examples from the GraphQL docs) via their <code>id</code>. In SPARQL I'd be using the <code>VALUES</code> clause and then binding, something like:</p>

<pre><code>VALUES { &lt;http://uri/id-1&gt; &lt;http://uri/id-2&gt; &lt;http://uri/id-3&gt; }
</code></pre>

<p>I'd assume something like this would be what I'd want (pseudocode)</p>

<pre><code>{
  human(id: ["1", "2", "3", "4", "5"]) {
    name
    height
  }
}
</code></pre>

<p><a href="http://graphql.org/learn/queries/#aliases" rel="noreferrer">Aliases</a> kind of do what I want, but I don't want to have to specify in advance or manually what the different named return values are - I want to say in my code pass a list of IDs:</p>

<pre><code>[1 2 3 4 5]
</code></pre>

<p>...and have a query that could accept that array of IDs and return me results in a predictable non-scalar shape as per the pseudo-query above.</p>

<p><strong>Second thing</strong></p>

<p>I'm also assuming that it's in fact not possible to have a query resolve to either a <code>Human</code> or <code>[Human]</code> - that it has to be one or the other? No biggie if so, I'd just settle for the latter... but I think I'm just generally quite confused over this now.</p>
