apoc.coll.zipToRows

Procedure

apoc.coll.zipToRows(list1 LIST<ANY>, list2 LIST<ANY>) - returns the two LIST<ANY> values zipped together, with one row per zipped pair.

Signature

apoc.coll.zipToRows(list1 :: LIST<ANY>, list2 :: LIST<ANY>) :: (value :: LIST<ANY>)

Input parameters

Name Type Default

list1

LIST<ANY>

null

list2

LIST<ANY>

null

Output parameters

Name Type

value

LIST<ANY>

Usage examples

The following indicates whether all values in a collection are different:

CALL apoc.coll.zipToRows([1,2,3], ["a", "b", "c"]);
Table 1. Results
value

[1, "a"]

[2, "b"]

[3, "c"]