apoc.meta.cypher.isType
语法 |
|
||
描述 |
如果给定值与给定类型匹配,则返回 true。 |
||
参数 |
名称 |
类型 |
描述 |
|
|
要检查其类型的对象。 |
|
|
|
验证类型。 |
|
返回 |
|
||
使用示例
以下示例演示了如何使用 Cypher 和 APOC 测试类型
apoc.meta.cypher.isType
RETURN apoc.meta.cypher.isType(1, "NODE") AS output;
类型谓词表达式
RETURN 1 IS :: NODE AS output;
| 输出 |
|---|
false |
apoc.meta.cypher.isType
RETURN apoc.meta.cypher.isType(datetime(), "DATE_TIME") AS output;
类型谓词表达式
RETURN datetime() IS :: ZONED DATETIME AS output;
| 输出 |
|---|
true |