add clash handling and multiple matches to merge node

This commit is contained in:
Deborah Barnard 2022-10-03 09:48:38 +01:00
parent 2f78664c22
commit e362f16c4e

View File

@ -28,6 +28,19 @@ n8n's default behavior is to keep matching items. You can change this using the
![Diagram](/_images/integrations/builtin/core-nodes/merge/merge-by-field-diagram.png)
#### Field value clashes
--8<-- "_snippets/integrations/builtin/core-nodes/merge/field-value-clash.md"
#### Multiple matches
Matching by field can generate multiple matches if the inputs contain duplicate data. To handle this, select **Add Option > Multiple Matches**. Then choose:
* **Include All Matches**: output multiple items (one for each match).
* **Include First Match Only**: keep the first item, discard subsequent items.
### Merge by position
Combine items based on their order. The item at index 0 in Input 1 merges with the item at index 0 in Input 2, and so on.