Skip to content

js-bao-wss-client


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.

Documentation validated against js-bao-wss-client 3.4.0 · js-bao 0.11.0 · primitive-admin 1.0.62 · primitive-app 3.1.0 — 2026-09-30