AggregateAsync

Performs a MongoDB aggregation query and returns results as BSON documents Returns ()

Combine the specified Data into BSON

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

Name Description
folder The folder to run the aggregation in
collectionName The name of the collection to aggregate
operations The MongoDB aggregation pipeline operations
queryTimeout The query timeout in seconds
includeGlobal Whether to include global scope items
hints Index hints. Use to suggest a possible existing index.

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);

Example in CURL



           #This has a very simple query
           curl -X GET \ 
               'https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/aggregate?queryTimeout=600&jsonStrict=False' \ 
               -H 'Authorization: Bearer TOKEN_GOES_HERE'