apoc.coll.disjunction

Function APOC Core

apoc.coll.disjunction(first, second) - returns the disjunct set of the two lists

Signature

apoc.coll.disjunction(first :: LIST? OF ANY?, second :: LIST? OF ANY?) :: (LIST? OF ANY?)

Input parameters

Name Type Default

first

LIST? OF ANY?

null

second

LIST? OF ANY?

null

Usage Examples

The following returns the unique disjunction of two lists:

RETURN apoc.coll.disjunction([1,2,3,4,5], [3,4,5]) AS output;
Table 1. Results
Output

[1, 2]