Method Project

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

Project(ProjectionDefinition<TResult, TNewResult>)

Appends a project stage to the pipeline.

IAggregateFluent<TNewResult> Project<TNewResult>(ProjectionDefinition<TResult, TNewResult> projection)

Parameters

projection ProjectionDefinition<TResult, TNewResult>

The projection.

Returns

IAggregateFluent

The fluent aggregate interface.

Type Parameters

TNewResult

The type of the result of the stage.