apoc.coll.intersection
Function APOC Core
apoc.coll.intersection(first, second) - returns the unique intersection of the two lists
Signature
apoc.coll.intersection(first :: LIST? OF ANY?, second :: LIST? OF ANY?) :: (LIST? OF ANY?)
Usage Examples
The following returns the unique intersection of the two lists:
RETURN apoc.coll.intersection([1,2,3,4,5], [3,4,5]) AS output;
Output |
---|
[3, 4, 5] |
Was this page helpful?