apoc.coll.zipToRows过程Cypher 25 中已弃用
使用示例
以下示例演示了如何在 APOC 和 Cypher 中合并两个列表
apoc.coll.zipToRows
WITH [1, 2, 3] AS list1, ["a", "b", "c"] AS list2
CALL apoc.coll.zipToRows(list1, list2)
YIELD value
RETURN value
Cypher 的 UNWIND
WITH [1, 2, 3] AS list1, ["a", "b", "c"] AS list2
UNWIND range(0, size(list1) - 1) AS i
RETURN [list1[i], list2[i]]
| 值 |
|---|
[1, "a"] |
[2, "b"] |
[3, "c"] |