Method Unwind
Unwind<TInput, TOutput>(FieldDefinition<TInput>, AggregateUnwindOptions<TOutput>)
Creates an $unwind stage.
public static PipelineStageDefinition<TInput, TOutput> Unwind<TInput, TOutput>(FieldDefinition<TInput> field, AggregateUnwindOptions<TOutput> options = null)
Parameters
field
FieldDefinition <TInput>The field.
options
AggregateUnwind <TOutput>Options The options.
Returns
- Pipeline
Stage <TInput, TOutput>Definition The stage.
Type Parameters
TInput
The type of the input documents.
TOutput
The type of the output documents.
Unwind<TInput>(FieldDefinition<TInput>, AggregateUnwindOptions<BsonDocument>)
Creates an $unwind stage.
public static PipelineStageDefinition<TInput, BsonDocument> Unwind<TInput>(FieldDefinition<TInput> field, AggregateUnwindOptions<BsonDocument> options = null)
Parameters
field
FieldDefinition <TInput>The field to unwind.
options
AggregateUnwind <BsonOptions Document >The options.
Returns
- Pipeline
Stage <TInput, BsonDefinition Document > The stage.
Type Parameters
TInput
The type of the input documents.
Unwind<TInput>(Expression<Func<TInput, object>>, AggregateUnwindOptions<BsonDocument>)
Creates an $unwind stage.
public static PipelineStageDefinition<TInput, BsonDocument> Unwind<TInput>(Expression<Func<TInput, object>> field, AggregateUnwindOptions<BsonDocument> options = null)
Parameters
field
Expression<Func<TInput, object>>The field to unwind.
options
AggregateUnwind <BsonOptions Document >The options.
Returns
- Pipeline
Stage <TInput, BsonDefinition Document > The stage.
Type Parameters
TInput
The type of the input documents.
Unwind<TInput, TOutput>(Expression<Func<TInput, object>>, AggregateUnwindOptions<TOutput>)
Creates an $unwind stage.
public static PipelineStageDefinition<TInput, TOutput> Unwind<TInput, TOutput>(Expression<Func<TInput, object>> field, AggregateUnwindOptions<TOutput> options = null)
Parameters
field
Expression<Func<TInput, object>>The field to unwind.
options
AggregateUnwind <TOutput>Options The options.
Returns
- Pipeline
Stage <TInput, TOutput>Definition The stage.
Type Parameters
TInput
The type of the input documents.
TOutput
The type of the output documents.