Aggregate Collection

These methods will aggregate a specified collection into either JSON or BSON.

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

Aggregate As Json Async

Example in C#

// Returns: IEnumerable<String>
var item = await client.AggregateAsJsonAsync(FolderInfo folder, String collectionName, BsonDocument operations, Int32 queryTimeout, Boolean jsonStrict)

Aggregate Async

Example in C#

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

Example in CURL

#This has a very simple query
curl -X GET \ https:// keepapi.feenicshosting.com /api/f/5b61d62492dacd062c424424/aggregate?queryTimeout=600&jsonStrict=False \ -H 'Authorization: Bearer TOKEN_GOES_HERE'