MergeIterator
Description
Section titled “Description”The mergeIterator module is a simplified merge node designed to unify the results of an Iterator. When the Iterator processes all elements of an array in parallel, the mergeIterator receives the processed results and combines them into a single output object. It supports two input formats: data from the Iterator with format { _fromIterator: true, items: [...] }, or a direct array of results. If the data does not match any expected format, it passes it as-is to the next node.
Configuration
Section titled “Configuration”Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
| (no configurable parameters) | - | - | This module does not require additional configuration. It operates automatically on the received data. |
Output
Section titled “Output”{ "nextModule": "siguiente_modulo", "data": { "merged": true, "items": [ { "resultado_1": "dato1" }, { "resultado_2": "dato2" }, { "resultado_3": "dato3" } ], "count": 3, "summary": [ { "index": 0, "status": "ok" }, { "index": 1, "status": "ok" } ] }}Usage Example
Section titled “Usage Example”Basic case
Section titled “Basic case”{ "label": "merge Iterator"}- Works as a direct complement to the Iterator node.
- Supports data with
_fromIterator: trueflag (Iterator format) and direct arrays. - The
merged: truefield indicates that the data was successfully unified. - The
countfield indicates the total number of combined items. - If the data is not an array and does not have the Iterator format, it is passed without modification.
- It is simpler than mergeResults: it does not handle iteration levels or memory storage.
Related Nodes
Section titled “Related Nodes”- Iterator - splits an array for parallel processing
- MergeResults - advanced merge with support for levels and memory
- Merge - basic merge with database
- MergeMultiple - merge of multiple flow branches