Announcement Announcement Module
Collapse
No announcement yet.
What's the return type of a @Query for the shortest path? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

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

    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?
Working...
X