Aggregate

logic_aggregate · logic · Logic & Flow · Available · v1.0.0

Description

Reduce an array to a single value: sum / count / average / min / max / concatenation. Optional group-by for per-group reduction.

⚙️ Configuration parameters

Fields shown in the editor when configuring the node. Generated directly from the NodeDefconfigFields.

FieldTypeRequiredDefaultDescription
sourceExpression
Array da ridurre
expressionyesinput
input.records
Espressione JS che ritorna un array. Default = input.
reducer
Funzione di riduzione
enum
countsumavgminmaxconcat
yescountcount = quanti item. sum = somma (richiede campo). avg = media. min/max = estremi. concat = concatena valori del campo come stringa CSV.
field
Campo (per sum/avg/min/max/concat)
stringno
es. amount, price, quantity
Nome del campo numerico (o stringa per concat). Ignorato per count. Se vuoto e items sono numeri, opera sui numeri stessi.
groupBy
Raggruppa per (opzionale)
stringno
es. customer_id, region
Se settato, riduce per gruppo e output e` { [valoreCampo]: risultato }. Es. amount sum group-by customer = total per cliente.

💡 Configuration example

JSON snippet of the node as it appears in the workflow. Values are derived fromdefaultValue and from required parameters.

{
  "id": "node-logic_aggregate-1",
  "defId": "logic_aggregate",
  "label": "Aggregate",
  "config": {
    "sourceExpression": "input",
    "reducer": "count"
  }
}

🔗 Related nodes in the same category

Ready to use Aggregate?

Available now on all FlowForge plans. Try it free without a credit card.

Start freeBrowse all nodes