js-bao-wss-client / PipelineStep
Type Alias: PipelineStep
PipelineStep =
PipelineQueryStep|PipelineCountStep|PipelineAggregateStep
A single step inside a pipeline definition's steps array, discriminated on type so only the keys the server accepts for that step type compile (e.g. a count step carrying projection, or an aggregate step carrying a query-shaped sort: { name: 1 }, is a compile error — both are 400s at runtime). The per-type key sets mirror PIPELINE_*_STEP_KEYS in the server descriptor.