Interface
GroupSpecification
The argument of $group: an _id that says how to group, plus any number
of output fields, each computed by an accumulator.
_id is a field reference such as "$team", a literal (null puts every
document in one group), or a document of up to 8 field references or
literals for a compound key. Two documents are in the same group when their
keys are equal as filters see equality, so 1 and 1n are different
groups. Groups come out in the order their first document arrived, and at
most 100,000 groups may exist at once.
interface GroupSpecificationDefined in packages/driver/src/aggregation.ts:127
Index signature#
[field]
#readonly [field: string]: GroupAccumulator | GroupValue | { readonly [name: string]: GroupValue }An output field computed by an accumulator. The name must not be empty,
start with $, or contain ..
Defined in packages/driver/src/aggregation.ts:134
Properties#
_id
#readonly _id: GroupValue | { readonly [name: string]: GroupValue }How to group: a field reference, a literal, or a compound key.
Defined in packages/driver/src/aggregation.ts:129