title: How to represent a map or object with key-value pairs in GraphQL?
body: <p>How can I query for the following object?</p>
  <pre><code>{
       result: {
            '1': {
            ^^^ these are dynamic keys, never constant
                 id: 'id1',
            },
            '20': {
                 id: 'id2',
            },
            '300': {
                 id: 'id3',
            },
       }
  }
  </code></pre>
  <p>I know that I can define the <code>result</code> object fairly simply, if it wasn't a key-value pair object.</p>
  <pre><code>const ResultQueryType = new GraphQLObjectType({
       name: 'ResultQueryType',
       fields: () =&gt; ({
            id: { type: GraphQLString }
       })
  })
  </code></pre>
  <p>But this is clearly not what I need. I haven't encountered such a scenario with GraphQL yet, what can I do here?</p>