I am still confused as to what will be returned on more complex Cypher queries. The documentation doesn't tell us.
If I have a Cypher Query on a repo method like
That Cypher query was taken from the Neo4j Documentation on Cypher. (Funny but you guys seem to be very light on your documentation. And you can't find anything that is more detailed to help understand how it works.)
MATCH p1=a-[:KNOWS*0..1]->b, p2=b-[:BLOCKS*0..1]->c
RETURN a,b,c, length(p1), length(p2)")
public ???? complexCypherQuery(User user)
So in that query the return returns more than just one node in the row. THere are three nodes and two properties returned. What will Spring Data Neo4J return?
Lets say the a, b, c part was the only part returned. Will that return a List of A's with the List of B's in A fully populated, like a fetch, and each B has a List of C's fully populated?
So in JPA, I can write a query like
"SELECT a FROM Order a JOIN FETCH a.orderDetails od JOIN FETCH od.items WHERE a.id = :id"
In which when I ran it would return a List<Order> where the Order would have their OrderDetails List fully populated which would have each OrderDetails List of Items fully populated. How do you do the same in Spring Data Neo4j?
I have a follow up question but I am going to put that into another thread.