Method Out
Out<TInput, TOutput>(PipelineDefinition<TInput, TOutput>, IMongoCollection<TOutput>, TimeSeriesOptions)
Appends a $out stage to the pipeline.
public static PipelineDefinition<TInput, TOutput> Out<TInput, TOutput>(this PipelineDefinition<TInput, TOutput> pipeline, IMongoCollection<TOutput> outputCollection, TimeSeriesOptions timeSeriesOptions = null)
Parameters
pipelinePipelineDefinition<TInput, TOutput>The pipeline.
outputCollectionIMongoCollection<TOutput>The output collection.
timeSeriesOptionsTimeSeriesOptionsThe time series options.
Returns
- PipelineDefinition<TInput, TOutput>
A new pipeline with an additional stage.
Type Parameters
TInputThe type of the input documents.
TOutputThe type of the output documents.