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
outputCollectionIMongoCollection<TOutput>The output collection.
mergeOptionsMergeStageOptions<TOutput>The merge options.
Returns
- PipelineStageDefinition<TInput, TOutput>
The stage.
Type Parameters
TInputThe type of the input documents.
TOutputThe type of the output documents.