group

Aggregate

Groups an array of objects into a single object keyed by a field value. Each key maps to an array of the records that share that value. Equivalent to GROUP BY in SQL.

Syntaxgroup:field
fieldField name to group by

Use cases

All commands