Table of Contents

Method Out

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

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

pipeline PipelineDefinition<TInput, TOutput>

The pipeline.

outputCollection IMongoCollection<TOutput>

The output collection.

timeSeriesOptions TimeSeriesOptions

The time series options.

Returns

PipelineDefinition<TInput, TOutput>

A new pipeline with an additional stage.

Type Parameters

TInput

The type of the input documents.

TOutput

The type of the output documents.

Exceptions

NotSupportedException