aggregate
Runs a JSON-stage MongoDB pipeline to filter, group, and transform collection data, returning capped results with collation and optional $out/$merge writes.
Instructions
Run an aggregation pipeline (JSON array of stages). $out / $merge are allowed unless the profile is read-only. limit caps the returned documents (default the profile's max_docs). collation: {"locale": "tr", "strength": 2} for Turkish case-insensitive matching (İ=i, I=ı).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| database | No | ||
| pipeline | Yes | ||
| collation | No | ||
| collection | Yes | ||
| connection | No | ||
| max_time_ms | No | ||
| allow_disk_use | No |