apoc.coll.zip

Function APOC Core

apoc.coll.zip([list1],[list2])

Signature

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

Input parameters

Name Type Default

list1

LIST? OF ANY?

null

list2

LIST? OF ANY?

null

Usage Examples

The following combines two lists, element for element, into a stream of lists:

RETURN apoc.coll.zip([1,2,3], ["a", "b", "c"]) as output;
Table 1. Results
Output

[[1, "a"], [2, "b"], [3, "c"]]