js-bao-wss-client / PipelineAggregateStep
Interface: PipelineAggregateStep
An aggregate step inside a pipeline definition's steps array. Keys: name, type, modelName, groupBy, operations, filter, limit, sort. The step's sort is the aggregate { field, direction } shape, not the query field→direction map.
Properties
filter?
optionalfilter?:OperationFilter
groupBy
groupBy:
string|AggregateGroupByEntry[]
limit?
optionallimit?:number
modelName
modelName:
string
name
name:
string
Unique step name (referenced by later steps as $steps.<name>).
operations
operations:
string|AggregateOperation[]
sort?
optionalsort?:object
direction
direction:
-1|1
field
field:
string
type
type:
"aggregate"