Method Count

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

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

Count()

Creates a $count stage.

public static PipelineStageDefinition<TInput, AggregateCountResult> Count<TInput>()

Returns

PipelineStageDefinition<TInput, AggregateCountResult>

The stage.

Type Parameters

TInput

The type of the input documents.