apoc.coll.unionAll
|
Syntax |
|
||
Description |
Returns the full union of the two given |
||
Arguments |
Name |
Type |
Description |
|
|
The list of values to compare against |
|
|
|
The list of values to compare against |
|
Returns |
|
Usage examples
The following examples create the full union of two lists using both APOC and Cypher:
apoc.coll.unionAll
RETURN apoc.coll.unionAll([1,2,3,4,5], [3,4,5,6,7]) AS output
Using Cypher’s list concatenation
RETURN [1,2,3,4,5] + [3,4,5,6,7] AS output
Output |
---|
[1, 2, 3, 4, 5, 3, 4, 5, 6, 7] |