group_by
Organize an array of objects into groups by a specified field, returning counts and grouped data for quick JSON analysis.
Instructions
Group an array of objects by a field value.
Args: alias: The alias of the loaded document. path: Dot-notation path to the array of objects. field: The field to group by (e.g. "category", "status").
Returns: A summary of groups with counts, plus the grouped data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| alias | Yes | ||
| field | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |