Aggregation Query
POST/collections/:collectionName/documents/aggregations
Perform complex data analysis using MongoDB native aggregation pipelines. Supported stages include: $match, $group, $project, $sort, $limit, $skip, $unwind, $lookup (admin only), $addFields, $count, $sample, $bucket, $bucketAuto, $geoNear, $replaceRoot, $sortByCount.
Auto-limits: $limit: 20 is automatically added when not specified. Under PRIVATE permissions, $match: {_openid: "xxx"} is automatically added.
Request
Responses
- 200
- 400
Aggregation query successful
Invalid request parameters