我正在尝试使用neo4j cypher查询语言,我遇到了这些表达式的问题:
这是有效的查询表达式并返回true:
start n=node(3) return 1 <> 2
但这不是:
start n=node(3) return (1 <> 2) = true
在我看来它应该返回true,但它返回错误:
错误:字符串匹配正则表达式\z' expected but
='找到
我尝试了类似的查询(也失败了):
start n = node(3) return not(true = true) = true
start n = node(3) return (true <> true) = true
当我点击直接尝试此查询时,我正在http://docs.neo4j.org/chunked/stable/query-where.html上测试查询
有什么建议吗?感谢
答案 0 :(得分:0)
似乎有可用的解决方法。
START n=node(3)
WITH (1<>2) AS a
WHERE a = TRUE
RETURN a
答案 1 :(得分:0)
至少从Neo4j Server 3.5.14开始,此方法有效。