Click or drag to resize

AggregateFluentBase<TResult>.SortByCount<TId> Method

Appends a sortByCount stage to the pipeline.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
Syntax
public virtual IAggregateFluent<AggregateSortByCountResult<TId>> SortByCount<TId>(
	AggregateExpressionDefinition<TResult, TId> id
)

Parameters

id
Type: MongoDB.Driver.AggregateExpressionDefinition<TResult, TId>
The identifier.

Type Parameters

TId
The type of the identifier.

Return Value

Type: IAggregateFluent<AggregateSortByCountResult<TId>>
The fluent aggregate interface.

Implements

IAggregateFluent<TResult>.SortByCount<TId>(AggregateExpressionDefinition<TResult, TId>)
See Also