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);
}