AggregateAsync

Combine the specified Data into BSON

For a guide on how to use aggregation please look at: Using Aggregates

Aggregate Async

Example in C#

// Returns: IEnumerable<BsonDocument>
var bsonDocument = await client.AggregateAsync(FolderInfo folder, String collectionName, BsonDocument operations, Int32 queryTimeout, Boolean includeGlobal, String hints);