Method Merge
Merge<TInput, TOutput>(IMongoCollection<TOutput>, MergeStageOptions<TOutput>)
Creates a $merge stage.
public static PipelineStageDefinition<TInput, TOutput> Merge<TInput, TOutput>(IMongoCollection<TOutput> outputCollection, MergeStageOptions<TOutput> mergeOptions)
Parameters
outputCollection
IMongoCollection <TOutput>The output collection.
mergeOptions
MergeStage <TOutput>Options The merge 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.