title: Grouping in GraphQL query
body: <p>I am new to GraphQl and learning it. Currently I have single database Table - <code>student_courses</code> as shown below:</p>
  <pre><code>student_id|   student_name   | course_code | course_name
  1              ABC                S-101       DataStructures
  1              ABC                S-150       NLP
  1              ABC                S-250       Machine learning
  2              PQR                S-101       DataStructures
  3              XYZ                S-101       DataStructures
  3              XYZ                S-150       NLP
  </code></pre>
  <p>I have mapped the model to single GraphQL object. So I am getting GraphQL API response as individual json objects for each row in table.</p>
  <p>I wanted to understand how to group the results of this table by <code>student_id, student_name</code> and get results in below format:</p>
  <p><code>student_id, student_name, {course_code : course_name}</code></p>
  <p>For eg: <code>1, &quot;ABC&quot;, {&quot;S-101&quot;:&quot;DataStructures&quot;, &quot;S-150&quot;:&quot;NLP&quot;, &quot;S-250&quot;:&quot;Machine learning&quot;}</code></p>
  <p>My current GraphQL query -</p>
  <pre><code>{
    student_courses() {
      data {
        student_id
        student_name
        course_code
        course_name
      }
    }
  }
  </code></pre>