v3

latestOpenAPI 3.1.0raw.githubusercontent.com2023-09-2792438.8 KB

Aggregate Documents

Run an aggregation pipeline.

post/action/aggregate

Request body

dataSourcestring required

The name of a linked MongoDB Atlas data source. This is commonly "mongodb-atlas" though it may be different in your App if you chose a different name when you created the data source.

databasestring required

The name of a database in the specified data source.

collectionstring required

The name of a collection in the specified database.

pipelineobject[] required

An array of aggregation stages.

Response

Success

documentsobject[] required

An array that contains the result set of the aggregation.