Type Alias
GroupValue
A value in a $group stage: a field reference or a literal. A string that
starts with $ names a field of the incoming document ("$age", or
"$address.city" for a nested one). A document without the field gives
null in a key. Any other value is a literal. There is no way to write a
literal string that starts with $.
type GroupValue = string | number | bigint | boolean | null | Date | Uint8Array | CustomIdDefined in packages/driver/src/aggregation.ts:65