$group
An aggregation stage that combines documents into one result per group. Its `_id` says what to group by, and the other fields are accumulators.
An aggregation stage that combines documents into one result per group. Its `_id` says what to group by, and the other fields are accumulators.