Method UnionWith
UnionWith<TWith>(IMongoCollection<TWith>, PipelineDefinition<TWith, TResult>)
Appends an $unionWith stage to the pipeline.
IAggregateFluent<TResult> UnionWith<TWith>(IMongoCollection<TWith> withCollection, PipelineDefinition<TWith, TResult> withPipeline = null)Parameters
- withCollectionIMongoCollection<TWith>
- The with collection. 
- withPipelinePipelineDefinition<TWith, TResult>
- The with pipeline. 
Returns
- IAggregateFluent<TResult>
- The fluent aggregate interface. 
Type Parameters
- TWith
- The type of the with collection documents.