title: Returning custom fields from nodejs graphql, how to write query, schema and resolver in graphql
body: <p>I want to get this type of data in return from a query by sending start_year and end_year.</p>
  <pre><code>{
      &quot;data&quot;: {
                &quot;year&quot;: ['2018','2019','2020'],
                 &quot;gasoline&quot;: ['67','21','9'],
                 &quot;gasoline&quot;: ['80','10','10'],
                }
  }
  </code></pre>
  <p>I need to know what will be the query, schema and resolver to return this format of data.</p>