Compare Datasets
core.compare_datasets · version 2.3 · Transform
Match items from two inputs and route them by whether they differ.
Ports
| Port | Kind | Label | Required | Max connections |
|---|---|---|---|---|
| input 0 | main | Input A | ||
| input 1 | main | Input B | ||
| output 0 | main | In A only | ||
| output 1 | main | Same | ||
| output 2 | main | Different | ||
| output 3 | main | In B only |
Credentials
This node uses no credentials.
Parameters
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
mergeByFields | fixed_collection | yes | Match On. | ||
mergeByFields.field1 | string | yes | Input A Field. | ||
mergeByFields.field2 | string | yes | Input B Field. | ||
resolve | options | "preferInput2" | For Different Items. One of preferInput1, preferInput2, mix, includeBoth. | ||
preferWhenMix | options | "input1" | resolve = mix | Base Version. One of input1, input2. | |
exceptWhenMix | string | resolve = mix | Take From The Other Input. Comma-separated fields copied from the other version. | ||
fuzzyCompare | boolean | false | Loose Type Comparison. Treat 1 and “1”, or null and an empty string, as equal. | ||
options | collection | ||||
options.skipFields | string | Fields to Ignore. Comma-separated fields left out of the comparison. | |||
options.disableDotNotation | boolean | false | Disable Dot Notation. Treat field names containing dots as plain keys instead of nested paths. | ||
options.multipleMatches | options | "first" | Several Matches. One of first, all. |
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 type | Version range | Status | Fixtures |
|---|---|---|---|
n8n-nodes-base.compareDatasets | 1 | unverified | |
n8n-nodes-base.compareDatasets | >=2 <3 | unverified |