apoc.coll.zipToRows

Procedure APOC Core

apoc.coll.zipToRows(list1,list2) - creates pairs like zip but emits one row per 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"]