Description
Group an array by a field. Output: { groups: { [value]: [item...] }, count: N }.
logic_group_by · logic · Logic & Flow · Available · v1.0.0
Group an array by a field. Output: { groups: { [value]: [item...] }, count: N }.
Fields shown in the editor when configuring the node. Generated directly from the NodeDefconfigFields.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
sourceExpressionArray da raggruppare | expression | yes | inputinput.records | Espressione JS che ritorna un array. Default = input. Es. input.orders. |
groupKeyCampo per raggruppare | string | yes | — 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": [...] }. |
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"
}
}Available now on all FlowForge plans. Try it free without a credit card.
Start freeBrowse all nodes