Method Unwind

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

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

Unwind(FieldDefinition, IBsonSerializer)

Appends an unwind stage to the pipeline.

[Obsolete("Use the Unwind overload which takes an options parameter.")]
IAggregateFluent<TNewResult> Unwind<TNewResult>(FieldDefinition<TResult> field, IBsonSerializer<TNewResult> newResultSerializer)

Parameters

field FieldDefinition

The field.

newResultSerializer IBsonSerializer

The new result serializer.

Returns

IAggregateFluent

The fluent aggregate interface.

Type Parameters

TNewResult

The type of the result of the stage.

Unwind(FieldDefinition, AggregateUnwindOptions)

Appends an unwind stage to the pipeline.

IAggregateFluent<TNewResult> Unwind<TNewResult>(FieldDefinition<TResult> field, AggregateUnwindOptions<TNewResult> options = null)

Parameters

field FieldDefinition

The field.

options AggregateUnwindOptions

The options.

Returns

IAggregateFluent

The fluent aggregate interface.

Type Parameters

TNewResult

The type of the new result.