Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Merge

core.merge · version 3.2 · Flow

Join the items arriving on several inputs into one list.

Ports

PortKindLabelRequiredMax connections
input 0mainInput 1
input 1mainInput 2
output 0main

The number of ports depends on the parameters; the table shows the default set.

Credentials

This node uses no credentials.

Parameters

NameTypeDefaultRequiredShown whenDescription
modeoptions"append"One of append, combine, combineBySql, chooseBranch.
numberInputsnumber2Number of inputs.
combineByoptions"combineByFields"mode = combineCombine by. One of combineByFields, combineByPosition, combineAll.
fieldsToMatchStringstringadvanced = false; combineBy = combineByFieldsFields to match. Comma-separated field names present in both inputs.
advancedbooleanfalsecombineBy = combineByFieldsFields have different names.
mergeByFieldsfixed_collectionadvanced = true; combineBy = combineByFieldsField pairs.
mergeByFields.valuesfixed_collectionPair.
mergeByFields.values.field1stringInput 1 field.
mergeByFields.values.field2stringInput 2 field.
joinModeoptions"keepMatches"combineBy = combineByFieldsOutput. One of keepMatches, keepNonMatches, keepEverything, enrichInput1, enrichInput2.
outputDataFromoptions"both"joinMode = keepMatches, keepNonMatchesTake data from. One of both, input1, input2.
outputoptions"specifiedInput"mode = chooseBranchOne of specifiedInput, empty.
useDataOfInputnumber1mode = chooseBranch; output = specifiedInputInput to pass through.
optionscollection
options.clashHandlingfixed_collectionWhen fields clash.
options.clashHandling.valuescollectionRule.
options.clashHandling.values.resolveClashoptions"preferLast"Keep the value from. One of preferLast, preferInput1, preferInput2, addSuffix.
options.clashHandling.values.mergeModeoptions"deepMerge"Nested fields. One of deepMerge, shallowMerge.
options.clashHandling.values.overrideEmptybooleanfalseKeep non-empty values. Do not let an empty value from the preferred input replace a filled one.
options.fuzzyComparebooleanfalseFuzzy compare. Treat values as equal when their text forms match (e.g. 3 and “3”).
options.disableDotNotationbooleanfalseLiteral field names. Do not treat dots in field names as nested paths.
options.includeUnpairedbooleanfalseKeep unpaired items.
options.multipleMatchesoptions"all"Multiple matches. One of all, first.

Import

Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating.

Source typeVersion rangeStatusFixtures
n8n-nodes-base.merge1unverified
n8n-nodes-base.merge2unverified
n8n-nodes-base.merge>=3 <4unverified