Aggregate
Execute MongoDb aggregate over your database
When you have a complex query where you need to link more than several collections together, and when you need to calculate, aggregate, sum up, and group the data, you can write aggregate and execute it from the API.
Check the docs on aggregation.
Last updated