Merge Component
Learn how the Merge pipeline node combines object inputs with shallow or deep merge strategies, or concatenates arrays, and how input order affects results.
Last updated:
The Merge Component allows you to bring together data from different branches of your pipeline. It supports several strategies for how the data should be combined.
⚙️ Configuration
| Property | Type | Description |
|---|---|---|
Strategy | enum | How to combine the inputs. |
🔄 Merge Strategies
- Object Merge (Shallow): Uses
Object.assignto combine all input objects. Top-level keys from later inputs overwrite those from earlier ones. - Deep Merge: Recursively merges objects. If both inputs have a nested object at the same key, those objects are also merged instead of overwritten.
- Array Concatenation: If all inputs are arrays, they are joined into a single flat array.
🛠️ Use Case: Data Enrichment
Connect an API Ingest node and a JSON Input node to a Merge node using the Deep Merge strategy to enrich local data with real-time information from an external service.