Method SortByCount

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

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

SortByCount(AggregateExpressionDefinition<TResult, TId>)

Appends a sortByCount stage to the pipeline.

IAggregateFluent<AggregateSortByCountResult<TId>> SortByCount<TId>(AggregateExpressionDefinition<TResult, TId> id)

Parameters

id AggregateExpressionDefinition<TResult, TId>

The identifier.

Returns

IAggregateFluent<AggregateSortByCountResult>

The fluent aggregate interface.

Type Parameters

TId

The type of the identifier.