mongo-aggregate
Execute aggregation pipelines on MongoDB collections to process and analyze data through multiple transformation stages.
Instructions
Execute aggregation pipeline on a MongoDB collection
Input Schema
| Name | Required | Description | Default | 
|---|---|---|---|
| collection | Yes | Collection name | |
| database | Yes | Database name | |
| pipeline | Yes | Aggregation pipeline as array of stage objects | 
Input Schema (JSON Schema)
{
  "properties": {
    "collection": {
      "description": "Collection name",
      "type": "string"
    },
    "database": {
      "description": "Database name",
      "type": "string"
    },
    "pipeline": {
      "description": "Aggregation pipeline as array of stage objects",
      "items": {
        "additionalProperties": {},
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "database",
    "collection",
    "pipeline"
  ],
  "type": "object"
}