【发布时间】:2014-02-24 10:31:39
【问题描述】:
在 Neo4j Cypher refcard (http://docs.neo4j.org/refcard/2.0/) 下的 Functions 部分中有以下定义:
toInt({expr})
Converts the given input in an integer if possible; otherwise it returns NULL.
如果我在 Cypher 控制台中尝试,我会得到:
neo4j-sh (?)$ match (n:Document) return toInt(n.date);
==> SyntaxException: Unknown function 'toInt' (line 1, column 27)
==> "match (n:Document) return toInt(n.date)"
==> ^
neo4j-sh (?)$
(在我的例子中,n.date 是该日期的字符串表示形式。)
neo4j 文档中也没有提及此功能:http://docs.neo4j.org/chunked/stable/query-function.html。
谁能解决这个难题?
【问题讨论】:
-
您可以发布查询吗?
-
应该是2.1.0-M01,我觉得跟refcard有些版本混淆了。