apoc.meta.cypher.types
语法 |
|
||
描述 |
返回一个 |
||
参数 |
名称 |
类型 |
描述 |
|
|
用于获取属性类型的关系、节点或映射。 |
|
返回 |
|
||
使用示例
使用映射输入调用该函数将返回一个具有相同键的映射,其中每个键的值是其在输入映射中的值的类型
RETURN apoc.meta.cypher.types({
item1: 2,
item2: datetime(),
item3: "Michael"
}) AS output;
| 输出 |
|---|
{item2: "DATE_TIME", item1: "INTEGER", item3: "STRING"} |
使用空映射调用该函数将返回一个空映射
RETURN apoc.meta.cypher.types({}) AS output;
| 输出 |
|---|
{} |
使用非映射的输入值调用该函数将返回一个空映射
RETURN apoc.meta.cypher.types(1) AS output;
| 输出 |
|---|
{} |