neo4j cypher toInt function

别来无恙 提交于 2019-12-25 12:14:46

问题


In the neo4j Cypher refcard (http://docs.neo4j.org/refcard/2.0/) under Functions sections there is this definition:

toInt({expr})

Converts the given input in an integer if possible; otherwise it returns NULL.

If I try it in Cypher console I get this:

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 (?)$ 

(In my case n.date is a string representation of that date.)

Also in the neo4j documentation there is not mention of this function: http://docs.neo4j.org/chunked/stable/query-function.html.

Can anyone solve this puzzle?


回答1:


toInt and toFloat are not yet added in 2.0.1 release. Check at this link.{line 28} Its been planned to release with 2.0.2



来源:https://stackoverflow.com/questions/21985133/neo4j-cypher-toint-function

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!