Method UnionWith
UnionWith<TInput, TWith>(IMongoCollection<TWith>, PipelineDefinition<TWith, TInput>)
Creates a $unionWith stage.
public static PipelineStageDefinition<TInput, TInput> UnionWith<TInput, TWith>(IMongoCollection<TWith> withCollection, PipelineDefinition<TWith, TInput> withPipeline = null)
Parameters
withCollectionIMongoCollection<TWith>The with collection.
withPipelinePipelineDefinition<TWith, TInput>The with pipeline.
Returns
- PipelineStageDefinition<TInput, TInput>
The stage.
Type Parameters
TInputThe type of the input documents.
TWithThe type of the with collection documents.