cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Spring data neo4j will not return a path

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

}
0 REPLIES 0