I'd like to use spring-data @Query to find the shortest path in between two entities. What is the result type supposed to be?
Also, do I need any special dependencies besides this one: spring-data-neo4j-rest:2.1.0.RELEASE?
Code:
@Query( "START u1=node:User(key= {0}), u2=node:User(key = {1}) " +
"MATCH p = shortestPath(u1-[*]-u2) " +
"RETURN p")
public ??? findShortestPath(String u1, String u2);