Group By

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

Description

Group an array by a field. Output: { groups: { [value]: [item...] }, count: N }.

⚙️ Configuration parameters

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

FieldTypeRequiredDefaultDescription
sourceExpression
Array da raggruppare
expressionyesinput
input.records
Espressione JS che ritorna un array. Default = input. Es. input.orders.
groupKey
Campo per raggruppare
stringyes
es. customer_id, category, region
Nome del campo dell'item su cui raggruppare. Es. items=[{customer:1,amount:10},{customer:2,amount:20},{customer:1,amount:5}] con groupKey=customer → { "1": [...], "2": [...] }.

💡 Configuration example

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

{
  "id": "node-logic_group_by-1",
  "defId": "logic_group_by",
  "label": "Group By",
  "config": {
    "sourceExpression": "input",
    "groupKey": "es. customer_id, category, region"
  }
}

🔗 Related nodes in the same category

Ready to use Group By?

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

Start freeBrowse all nodes