Quantcast
Channel: Spring Community Forums - NoSQL
Viewing all articles
Browse latest Browse all 128

What's the return type of a @Query for the shortest path?

$
0
0
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?

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

Also, do I need any special dependencies besides this one: spring-data-neo4j-rest:2.1.0.RELEASE?

Viewing all articles
Browse latest Browse all 128

Trending Articles