Aggregates items into a single value.
| Name | Type | Description | Notes |
|---|---|---|---|
| type | TypeEnum | A step discriminator of type `reduce`. | |
| operator | OperatorEnum | The aggregation operator applied to the items produced by the preceding step: - `max`, `min`, and `sum` operate on numeric values. - `count` returns the number of items. - `empty` reports whether the list is empty. |
| Name | Value |
|---|---|
| REDUCE | "reduce" |
| Name | Value |
|---|---|
| MAX | "max" |
| MIN | "min" |
| SUM | "sum" |
| COUNT | "count" |
| EMPTY | "empty" |