PipelineDefinitionBuilder.Unwind<TInput, TIntermediate> Method (PipelineDefinition<TInput, TIntermediate>, Expression<Func<TIntermediate, Object>>, AggregateUnwindOptions<BsonDocument>) |
Appends an unwind stage to the pipeline.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
Syntaxpublic static PipelineDefinition<TInput, BsonDocument> Unwind<TInput, TIntermediate>(
this PipelineDefinition<TInput, TIntermediate> pipeline,
Expression<Func<TIntermediate, Object>> field,
AggregateUnwindOptions<BsonDocument> options = null
)
<ExtensionAttribute>
Public Shared Function Unwind(Of TInput, TIntermediate) (
pipeline As PipelineDefinition(Of TInput, TIntermediate),
field As Expression(Of Func(Of TIntermediate, Object)),
Optional options As AggregateUnwindOptions(Of BsonDocument) = Nothing
) As PipelineDefinition(Of TInput, BsonDocument)
[<ExtensionAttribute>]
static member Unwind :
pipeline : PipelineDefinition<'TInput, 'TIntermediate> *
field : Expression<Func<'TIntermediate, Object>> *
?options : AggregateUnwindOptions<BsonDocument>
(* Defaults:
let _options = defaultArg options null
*)
-> PipelineDefinition<'TInput, BsonDocument>
Parameters
- pipeline
- Type: MongoDB.Driver.PipelineDefinition<TInput, TIntermediate>
The pipeline. - field
- Type: System.Linq.Expressions.Expression<Func<TIntermediate, Object>>
The field to unwind. - options (Optional)
- Type: MongoDB.Driver.AggregateUnwindOptions<BsonDocument>
The options.
Type Parameters
- TInput
- The type of the input documents.
- TIntermediate
- The type of the intermediate documents.
Return Value
Type:
PipelineDefinition<TInput,
BsonDocument>
The fluent aggregate interface.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
PipelineDefinition<TInput,
TIntermediate>. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also