apoc.coll.zipToRows

Procedure

apoc.coll.zipToRows(list1 [Any], list2 [Any]) - returns the two lists zipped together, with one row per zipped pair.

Signature

apoc.coll.zipToRows(list1 :: LIST? OF ANY?, list2 :: LIST? OF ANY?) :: (value :: LIST? OF ANY?)

Input parameters

Name Type Default

list1

LIST? OF ANY?

null

list2

LIST? OF ANY?

null

Output parameters

Name Type

value

LIST? OF 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"]