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

Compare Datasets

core.compare_datasets · version 2.3 · Transform

Match items from two inputs and route them by whether they differ.

Ports

PortKindLabelRequiredMax connections
input 0mainInput A
input 1mainInput B
output 0mainIn A only
output 1mainSame
output 2mainDifferent
output 3mainIn B only

Credentials

This node uses no credentials.

Parameters

NameTypeDefaultRequiredShown whenDescription
mergeByFieldsfixed_collectionyesMatch On.
mergeByFields.field1stringyesInput A Field.
mergeByFields.field2stringyesInput B Field.
resolveoptions"preferInput2"For Different Items. One of preferInput1, preferInput2, mix, includeBoth.
preferWhenMixoptions"input1"resolve = mixBase Version. One of input1, input2.
exceptWhenMixstringresolve = mixTake From The Other Input. Comma-separated fields copied from the other version.
fuzzyComparebooleanfalseLoose Type Comparison. Treat 1 and “1”, or null and an empty string, as equal.
optionscollection
options.skipFieldsstringFields to Ignore. Comma-separated fields left out of the comparison.
options.disableDotNotationbooleanfalseDisable Dot Notation. Treat field names containing dots as plain keys instead of nested paths.
options.multipleMatchesoptions"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 typeVersion rangeStatusFixtures
n8n-nodes-base.compareDatasets1unverified
n8n-nodes-base.compareDatasets>=2 <3unverified