Table of Contents

Method For

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

For<TInput>(IBsonSerializer<TInput>)

Used to start creating a pipeline for {TInput} documents.

public static PipelineDefinition<TInput, TInput> For<TInput>(IBsonSerializer<TInput> inputSerializer = null)

Parameters

inputSerializer IBsonSerializer<TInput>

The inputSerializer serializer.

Returns

PipelineDefinition<TInput, TInput>

An empty pipeline.

Type Parameters

TInput

The type of the output.