我想使用其名称(而不是其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)
是否有人为此进行任何工作