Method UnionWith
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
UnionWith(IMongoCollection, PipelineDefinition<TWith, TResult>)
Appends an $unionWith stage to the pipeline.
IAggregateFluent<TResult> UnionWith<TWith>(IMongoCollection<TWith> withCollection, PipelineDefinition<TWith, TResult> withPipeline = null)
Parameters
withCollection
IMongoCollection
The with collection.
withPipeline
PipelineDefinition<TWith, TResult>
The with pipeline.
Returns
The fluent aggregate interface.
Type Parameters
TWith
The type of the with collection documents.