Method Merge
Merge<TInput, TIntermediate, TOutput>(PipelineDefinition<TInput, TIntermediate>, IMongoCollection<TOutput>, MergeStageOptions<TOutput>)
Appends a $merge stage to the pipeline.
public static PipelineDefinition<TInput, TOutput> Merge<TInput, TIntermediate, TOutput>(this PipelineDefinition<TInput, TIntermediate> pipeline, IMongoCollection<TOutput> outputCollection, MergeStageOptions<TOutput> mergeOptions)
Parameters
pipeline
PipelineDefinition <TInput, TIntermediate>The pipeline.
outputCollection
IMongoCollection <TOutput>The output collection.
mergeOptions
MergeStage <TOutput>Options The merge options.
Returns
- Pipeline
Definition <TInput, TOutput> A new pipeline with an additional stage.
Type Parameters
TInput
The type of the input documents.
TIntermediate
The type of the intermediate documents.
TOutput
The type of the output documents.