Method Out

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

Out<TInput, TOutput>(PipelineDefinition<TInput, TOutput>, IMongoCollection, 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

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