title: Return all document occurrences in mongoose $group aggregate query
body: <p>My current query</p>
  <pre><code>aggregate([
                      { $match : { treatment: 'no treatment',baseScore:{$gte:9}} },
                      {&quot;$group&quot;:{
                          &quot;_id&quot;:{&quot;cveDataMetaIds&quot;:&quot;$cveDataMetaIds&quot;,&quot;baseScore&quot;:&quot;$baseScore&quot;},
                          &quot;count&quot;:{&quot;$sum&quot;:1}
                        }
                      }
                      ])
  </code></pre>
  <p>returns this result</p>
  <pre><code>[{
      _id: {
        cveDataMetaIds: 'CVE-2021-30820',
        baseScore: 9.8
      },
      count: 2
    },
    {
      _id: {
        cveDataMetaIds: 'CVE-2021-33757',
        baseScore: 9.8
      },
      count: 1
    }
  
  ]
  </code></pre>
  <p>I am wondering if it's possible to print it like this so that it would show the count for example count=2 and the two documents as well in an array below it ?</p>
  <pre><code>[{
      _id: {
        cveDataMetaIds: 'CVE-2021-30820',
        baseScore: 9.8
      },
      count: 2,
      data:[
      {first occurrence data},
      {second occurrence data}
      ]
    }
  ]
  </code></pre>