I would like to check whether a node exists using its name (instead of its ID). The Cypher query looks like :
MATCH (c:Jaguar{name:"JLR 2.5Ltr"})-[:REPRESENTED_BY]->(v) RETURN c IS NOT NULL
However, Using neo4j shell/web console, the result returned is of type String. The same fails in spring-data-neo4j with error :
Null return value from advice does not match primitive return type for: public abstract boolean xxx.yyy.repository.SomeRepository.checkIfDatasetExists(java.lang.String)
Has somebody come across any work around for this