Merge grouped results into one document in Mongo

{
  $group: {
  _id: "tmp",
   array: {
    $push: "$$ROOT"
   }
  }
}
Topics: MongoDB

Related Code Examples