Method Merge
Merge<TOutput>(IMongoCollection<TOutput>, MergeStageOptions<TOutput>, CancellationToken)
Appends a merge stage to the pipeline and executes it, and then returns a cursor to read the contents of the output collection.
IAsyncCursor<TOutput> Merge<TOutput>(IMongoCollection<TOutput> outputCollection, MergeStageOptions<TOutput> mergeOptions = null, CancellationToken cancellationToken = default)
Parameters
outputCollectionIMongoCollection<TOutput>The output collection.
mergeOptionsMergeStageOptions<TOutput>The merge options.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- IAsyncCursor<TOutput>
A cursor.
Type Parameters
TOutputThe type of output documents.