IAggregateFluentExtensions Class |
Namespace: MongoDB.Driver
The IAggregateFluentExtensions type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | FirstAsync<TResult> |
Returns the first document of the aggregate result.
|
![]() ![]() | FirstOrDefaultAsync<TResult> |
Returns the first document of the aggregate result, or the default value if the result set is empty.
|
![]() ![]() | Group<TResult>(IAggregateFluent<TResult>, ProjectionDefinition<TResult, BsonDocument>) |
Appends a group stage to the pipeline.
|
![]() ![]() | Group<TResult, TKey, TNewResult>(IAggregateFluent<TResult>, Expression<Func<TResult, TKey>>, Expression<Func<IGrouping<TKey, TResult>, TNewResult>>) |
Appends a group stage to the pipeline.
|
![]() ![]() | Match<TResult> |
Appends a match stage to the pipeline.
|
![]() ![]() | Project<TResult>(IAggregateFluent<TResult>, ProjectionDefinition<TResult, BsonDocument>) |
Appends a project stage to the pipeline.
|
![]() ![]() | Project<TResult, TNewResult>(IAggregateFluent<TResult>, Expression<Func<TResult, TNewResult>>) |
Appends a project stage to the pipeline.
|
![]() ![]() | SingleAsync<TResult> |
Returns the only document of the aggregate result. Throws an exception if the result set does not contain exactly one document.
|
![]() ![]() | SingleOrDefaultAsync<TResult> |
Returns the only document of the aggregate result, or the default value if the result set is empty. Throws an exception if the result set contains more than one document.
|
![]() ![]() | SortBy<TResult> |
Appends an ascending sort stage to the pipeline.
|
![]() ![]() | SortByDescending<TResult> |
Appends a descending sort stage to the pipeline.
|
![]() ![]() | ThenBy<TResult> |
Modifies the current sort stage by appending an ascending field specification to it.
|
![]() ![]() | ThenByDescending<TResult> |
Modifies the current sort stage by appending a descending field specification to it.
|
![]() ![]() | Unwind<TResult>(IAggregateFluent<TResult>, FieldDefinition<TResult>) |
Appends an unwind stage to the pipeline.
|
![]() ![]() | Unwind<TResult>(IAggregateFluent<TResult>, Expression<Func<TResult, Object>>) |
Appends an unwind stage to the pipeline.
|
![]() ![]() | Unwind<TResult, TNewResult>(IAggregateFluent<TResult>, Expression<Func<TResult, Object>>, IBsonSerializer<TNewResult>) |
Appends an unwind stage to the pipeline.
|