Description
Aggregate statistics over a numeric array (or a numeric field of an object array) in pure JavaScript: count, sum, mean, min, max, MEDIAN and STANDARD DEVIATION in one pass — what n8n needs Code or Summarize for.
action_aggregate · action · Data & Transform · Available · v1.0.0
Aggregate statistics over a numeric array (or a numeric field of an object array) in pure JavaScript: count, sum, mean, min, max, MEDIAN and STANDARD DEVIATION in one pass — what n8n needs Code or Summarize for.
Fields shown in the editor when configuring the node. Generated directly from the NodeDefconfigFields.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
operationStatistica | enumallsumavgminmaxmedianstddevcount | yes | all | "all" = tutte insieme. Oppure scegline una sola come risultato principale. |
itemsArray | expression | no | input | Array di numeri o di oggetti. Vuoto = usa l'input del nodo. |
keyCampo numerico (dot-path) | string | no | — es. ordine.totale | Se gli elementi sono oggetti, il campo da aggregare. Vuoto = gli elementi sono già numeri. |
Fields available to downstream nodes via $node.<alias>.json.<field>:
defaultJSON snippet of the node as it appears in the workflow. Values are derived fromdefaultValue and from required parameters.
{
"id": "node-action_aggregate-1",
"defId": "action_aggregate",
"label": "Statistics",
"config": {
"operation": "all",
"items": "input"
}
}Available now on all FlowForge plans. Try it free without a credit card.
Start freeBrowse all nodes