@cbnsndwch/zero-sources

PipelineMappingBuilder.project() method

Home > @cbnsndwch/zero-contracts > PipelineMappingBuilder > project

PipelineMappingBuilder.project() method

Adds a $project stage to reshape documents at any point in the pipeline

Signature:

project(projection: Record<string, 1 | 0 | DocumentPath | ProjectionOperator>): this;

Parameters

Parameter

Type

Description

projection

Record<string, 1 | 0 | DocumentPath | ProjectionOperator>

Returns:

this

How was this page?