apoc.coll.intersection
Function
apoc.coll.intersection(list1 [Any], list2[Any])
- returns the distinct intersection of 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?