apoc.coll.unionAll

Function

apoc.coll.unionAll(list1 LIST<ANY>, list2 LIST<ANY>) - returns the full union of the two given LIST<ANY> values (duplicates included).

Signature

apoc.coll.unionAll(first :: LIST<ANY>, second :: LIST<ANY>) :: LIST<ANY>

Input parameters

Name Type Default

first

LIST<ANY>

null

second

LIST<ANY>

null

Usage examples

The following creates the full union of two lists:

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

[1, 2, 3, 4, 5, 3, 4, 5, 6, 7]