apoc.coll.zipToRows

Details

Syntax

apoc.coll.zipToRows(list1, list2) :: (value)

Description

Returns the two LIST<ANY> values zipped together, with one row per zipped pair.

Input arguments

Name

Type

Description

list1

LIST<ANY>

The list to zip together with list2.

list2

LIST<ANY>

The list to zip together with list1.

Return arguments

Name

Type

Description

value

LIST<ANY>

A zipped pair.

Usage examples

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

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

[1, "a"]

[2, "b"]

[3, "c"]