【问题标题】:neo4j cypher toInt functionneo4j 密码 toInt 函数
【发布时间】: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有些版本混淆了。

标签: neo4j cypher


【解决方案1】:

toInt 和 toFloat 尚未在 2.0.1 版本中添加。查看link。{line 28} 计划与 2.0.2 一起发布

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-05-25
    • 2013-03-18
    • 2013-09-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多