Method Group

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

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

Group(ProjectionDefinition<TResult, TNewResult>)

Appends a group stage to the pipeline.

IAggregateFluent<TNewResult> Group<TNewResult>(ProjectionDefinition<TResult, TNewResult> group)

Parameters

group ProjectionDefinition<TResult, TNewResult>

The group projection.

Returns

IAggregateFluent

The fluent aggregate interface.

Type Parameters

TNewResult

The type of the result of the stage.