Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
11-03-2019 11:38 AM
I am struggling to get spring to return the path result for the query below. I cannot find any documentation detailing how spring data neo4j handles returning paths. Any advice would be much appreciated.
public interface OccupationRepository extends Neo4jRepository<Occupation, Long> {
@Query("MATCH (ms:Occupation {title: {start}}), (cs:Occupation {title: {finish}}), p = shortestPath((ms)-[:LEADS_TO*]-(cs)) RETURN p")
Iterable<Map<String, Object>> findCareerPath(@Param("start") String start, @Param("finish") String finish);
}
All the sessions of the conference are now available online