|| apoc.map.fromPairs - APOC 核心文档 - Neo4j 文档

apoc.map.fromPairs

详情

语法

apoc.map.fromPairs(pairs)

描述

从给定的键值对 LIST<LIST<ANY>> 创建一个 MAP

参数

名称

类型

描述

pairs

LIST<LIST<ANY>>

用于创建映射的键值对列表。

返回

MAP

使用示例

以下从键值对列表创建一个 MAP

RETURN apoc.map.fromPairs([
    ["name", "Cristiano Ronaldo"],
    ["age", date("1985-02-05")]
]) AS output;
结果
输出
{
  "name": "Cristiano Ronaldo",
  "age": "1985-02-05"
}
© . This site is unofficial and not affiliated with Neo4j, Inc.