merge.json•5.26 kB
{
"nodeType": "n8n-nodes-base.merge",
"displayName": "Merge",
"description": null,
"version": "3.1",
"properties": [
{
"name": "mode",
"displayName": "Mode",
"type": "options",
"default": "append",
"description": "All items of input 1, then all items of input 2",
"options": [
{
"name": "Append",
"value": "append",
"description": "All items of input 1, then all items of input 2"
},
{
"name": "Combine",
"value": "combine",
"description": "Merge matching items together"
},
{
"name": "Choose Branch",
"value": "chooseBranch",
"description": "Output input data, without modifying it"
}
]
},
{
"name": "combinationMode",
"displayName": "Combination Mode",
"type": "options",
"default": "mergeByFields",
"description": "Combine items with the same field values",
"options": [
{
"name": "Merge By Fields",
"value": "mergeByFields",
"description": "Combine items with the same field values"
},
{
"name": "Merge By Position",
"value": "mergeByPosition",
"description": "Combine items based on their order"
},
{
"name": "Multiplex",
"value": "multiplex",
"description": "All possible item combinations (cross join)"
}
],
"displayOptions": {
"show": {
"mode": [
"combine"
]
}
}
},
{
"name": "mergeByFields",
"displayName": "Fields to Match",
"type": "fixedCollection",
"default": {},
"placeholder": "Add Fields to Match",
"typeOptions": {
"multipleValues": true
},
"displayOptions": {
"show": {
"mode": [
"combine"
],
"combinationMode": [
"mergeByFields"
]
}
}
},
{
"name": "joinMode",
"displayName": "Output Type",
"type": "options",
"default": "keepMatches",
"description": "Items that match, merged together (inner join)",
"options": [
{
"name": "Keep Matches",
"value": "keepMatches",
"description": "Items that match, merged together (inner join)"
},
{
"name": "Keep Non-Matches",
"value": "keepNonMatches",
"description": "Items that don't match"
},
{
"name": "Keep Everything",
"value": "keepEverything",
"description": "Items that match merged together, plus items that don't match (outer join)"
},
{
"name": "Enrich Input 1",
"value": "enrichInput1",
"description": "All of input 1, with data from input 2 added in (left join)"
},
{
"name": "Enrich Input 2",
"value": "enrichInput2",
"description": "All of input 2, with data from input 1 added in (right join)"
}
],
"displayOptions": {
"show": {
"mode": [
"combine"
],
"combinationMode": [
"mergeByFields"
]
}
}
},
{
"name": "outputDataFrom",
"displayName": "Output Data From",
"type": "options",
"default": "both",
"options": [
{
"name": "Both Inputs Merged Together",
"value": "both"
},
{
"name": "Input 1",
"value": "input1"
},
{
"name": "Input 2",
"value": "input2"
}
],
"displayOptions": {
"show": {
"mode": [
"combine"
],
"combinationMode": [
"mergeByFields"
],
"joinMode": [
"keepMatches"
]
}
}
},
{
"name": "chooseBranchMode",
"displayName": "Output Type",
"type": "options",
"default": "waitForBoth",
"options": [
{
"name": "Wait for Both Inputs to Arrive",
"value": "waitForBoth"
}
],
"displayOptions": {
"show": {
"mode": [
"chooseBranch"
]
}
}
},
{
"name": "output",
"displayName": "Output",
"type": "options",
"default": "input1",
"options": [
{
"name": "Input 1 Data",
"value": "input1"
},
{
"name": "Input 2 Data",
"value": "input2"
},
{
"name": "A Single, Empty Item",
"value": "empty"
}
],
"displayOptions": {
"show": {
"mode": [
"chooseBranch"
],
"chooseBranchMode": [
"waitForBoth"
]
}
}
}
],
"credentialsConfig": [],
"io": {
"inputs": [],
"outputs": [],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [],
"produces": []
}
}