aggregate_product
Count selected products and sum their stock, optionally grouped by product properties. Get totals and member product keys for client-side filtering and further analysis.
Instructions
Count the selected Product objects and optionally sum a numeric property. Omit group_by for one whole-set total (key: null, zero metrics for an empty set), or group by a property. Returns set and values; each row has a key, member pks and numeric metrics. Filter rows in client-side code and use their pks to continue exploring.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pks | Yes | ||
| sum | No | ||
| group_by | No |