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
fieldFieldDefinition<TInput>The field.
optionsAggregateUnwindOptions<TOutput>The options.
Returns
- PipelineStageDefinition<TInput, TOutput>
The stage.
Type Parameters
TInputThe type of the input documents.
TOutputThe 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
fieldFieldDefinition<TInput>The field to unwind.
optionsAggregateUnwindOptions<BsonDocument>The options.
Returns
- PipelineStageDefinition<TInput, BsonDocument>
The stage.
Type Parameters
TInputThe 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
fieldExpression<Func<TInput, object>>The field to unwind.
optionsAggregateUnwindOptions<BsonDocument>The options.
Returns
- PipelineStageDefinition<TInput, BsonDocument>
The stage.
Type Parameters
TInputThe 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
fieldExpression<Func<TInput, object>>The field to unwind.
optionsAggregateUnwindOptions<TOutput>The options.
Returns
- PipelineStageDefinition<TInput, TOutput>
The stage.
Type Parameters
TInputThe type of the input documents.
TOutputThe type of the output documents.