Skip to content

MergeIterator

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.

ParameterTypeRequiredDescription
(no configurable parameters)--This module does not require additional configuration. It operates automatically on the received data.
{
"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" }
]
}
}
{
"label": "merge Iterator"
}
  • Works as a direct complement to the Iterator node.
  • Supports data with _fromIterator: true flag (Iterator format) and direct arrays.
  • The merged: true field indicates that the data was successfully unified.
  • The count field 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.
  • 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