Swell offers native support for the MongoDB Aggregation Pipeline; a framework for data aggregation allowing you to summarize data for reporting and other purposes.

Use the aggregate parameter to construct a pipeline according to this Mongo reference.

Due to limitations within our Developer API console in the dashboard, we recommend using swell-js directly for aggregation.