Type/to search
Nodes
Manual Trigger
Schedule Trigger
RSS Feed Trigger
Kline Close Trigger
Discord Trigger
Telegram Trigger
Slack Trigger
AI Agent
Sentiment Analysis
MCP Client
OpenAI Model
Anthropic Chat Model
Code Tool
HTTP Request Tool
MCP Client Tool
Code
HTTP Request
Edit Fields (Set)
Filter
IF
Loop Over Items
Merge
Aggregate
Compare Datasets
Convert to File
Crypto
Database
Extract from File
HTML
Limit
Log
No Operation, do nothing
RSS Read
Read Files from Disk
Remove Duplicates
Rename Keys
S3
Sort
Split Out
Stop And Error
Summarize
Switch
Telegram
Wait
Write Files To Disk
XML
App push
DingTalk Robot
Discord Bot
Email
Feishu Custom Bot
Slack
Account Info
Market Info
Trading Executor
Indicator
Trading Plugin
Credentials


Use the Merge node to combine data from multiple streams once data from all streams is available.

Node parameters

You can specify how the Merge node combines data from different data streams by selecting a Mode:

Append

Retains data from all inputs. Choose a Number of Inputs to output items from each input sequentially. The node waits for all connected inputs to complete execution.

Append mode inputs and output

Combine

Merges data from two inputs. Select an option in Combine By to determine the merge strategy.

Matching Fields

Compares items by field values. Enter the fields to compare in Fields to Match.

The default behavior retains matching items. You can modify this using the Output Type setting:

  • Keep Matches: Merges items that match. This performs an inner join.
  • Keep Non-Matches: Merges items that don't match.
  • Keep Everything: Merges matching items and includes non-matching items. This performs an outer join.
  • Enrich Input 1: Retains all data from Input 1 and adds matching data from Input 2. This performs a left join.
  • Enrich Input 2: Retains all data from Input 2 and adds matching data from Input 1. This performs a right join.

Combine by Matching Fields mode inputs and output

Position

Combines items based on their index position. The item at index 0 in Input 1 merges with the item at index 0 in Input 2, and so on.

Combine by Position mode inputs and output

All Possible Combinations

Outputs all possible item combinations while merging fields with identical names.

Combine by All Possible Combinations mode inputs and output

Combine mode options

When merging data using Mode > Combine, you can configure these Options:

  • Clash Handling: Specifies how to merge when data streams conflict or contain sub-fields. See Clash handling for details.
  • Fuzzy Compare: Enables type tolerance when comparing fields (enabled) or requires exact type matching (disabled, default). For example, when enabled, the node treats "3" and 3 as equivalent.
  • Disable Dot Notation: Prevents accessing child fields using parent.child notation in field names.
  • Multiple Matches: Determines how the node handles multiple matches when comparing data streams.
    • Include All Matches: Outputs multiple items for multiple matches, one per match.
    • Include First Match Only: Retains only the first matching item and discards subsequent matches.
  • Include Any Unpaired Items: Determines whether to retain or discard unpaired items when merging by position. By default, items without matches are excluded.
Choose Branch

Selects which input to retain. This option always waits until data from both inputs is available. You can choose to Output:

  • Input 1 Data
  • Input 2 Data
  • A Single, Empty Item

The node outputs data from the selected input without modification.

Merging data streams with uneven numbers of items

Items passed to Input 1 of the Merge node take precedence. For example, if the Merge node receives five items in Input 1 and ten items in Input 2, it processes only five items. The remaining five items from Input 2 are not processed.

Try it out: A step-by-step example

Create a workflow with sample input data to explore the Merge node functionality.

Set up sample data using Code nodes
  1. Add a Code node to the canvas and connect it to the Start node.
  2. Paste the following JavaScript code snippet in the JavaScript Code field:
javascript
return [ { json: { name: "Stefan", language: "de", }, }, { json: { name: "Jim", language: "en", }, }, { json: { name: "Hans", language: "de", }, }, ];
  1. Add a second Code node and connect it to the Start node.
  2. Paste the following JavaScript code snippet in the JavaScript Code field:
javascript
return [ { json: { greeting: "Hello", language: "en", }, }, { json: { greeting: "Hallo", language: "de", }, }, ];
Try different merge modes

Add the Merge node. Connect the first Code node to Input 1 and the second Code node to Input 2. Run the workflow to load data into the Merge node.

Append

Select Mode > Append, then select Execute step.

Your output in table view should appear as follows:

namelanguagegreeting
Stefande
Jimen
Hansde
enHello
deHallo
Combine by Matching Fields

You can merge these two data inputs to assign the correct greeting to each person based on their language.

  1. Select Mode > Combine.
  2. Select Combine by > Matching Fields.
  3. Enter language in both Input 1 Field and Input 2 Field. This instructs the node to combine data by matching values in the language field from each dataset.
  4. Select Execute step.

Your output in table view should appear as follows:

namelanguagegreeting
StefandeHallo
JimenHello
HansdeHallo
Combine by Position

Select Mode > Combine, Combine by > Position, then select Execute step.

Your output in table view should appear as follows:

namelanguagegreeting
StefanenHello
JimdeHallo
Keep unpaired items

To retain all items, select Add Option > Include Any Unpaired Items, then enable Include Any Unpaired Items.

Your output in table view should appear as follows:

namelanguagegreeting
StefanenHello
JimdeHallo
Hansde
Combine by All Possible Combinations

Select Mode > Combine, Combine by > All Possible Combinations, then select Execute step.

Your output in table view should appear as follows:

namelanguagegreeting
StefanenHello
StefandeHallo
JimenHello
JimdeHallo
HansenHello
HansdeHallo

Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)