小编Thi*_*ail的帖子

从Neo4j密码查询返回布尔值

我想使用其名称(而不是其ID)检查节点是否存在。Cypher查询看起来像:

MATCH (c:Jaguar{name:"JLR 2.5Ltr"})-[:REPRESENTED_BY]->(v) RETURN c IS NOT NULL
Run Code Online (Sandbox Code Playgroud)

但是,使用neo4j Shell / Web控制台,返回的结果为String类型。在spring-data-neo4j中同样失败,并显示以下错误:

Null return value from advice does not match primitive return type for: public abstract boolean xxx.yyy.repository.SomeRepository.checkIfDatasetExists(java.lang.String)
Run Code Online (Sandbox Code Playgroud)

是否有人为此进行任何工作

java neo4j cypher spring-data-neo4j

5
推荐指数
2
解决办法
2791
查看次数

标签 统计

cypher ×1

java ×1

neo4j ×1

spring-data-neo4j ×1