I have two Decision node - parent and child.
I have implemented following method that returns path between these nodes.
@Query("MATCH path=(d:Decision)<-[:CONTAINS*]-(ancestorD:Decision) WHERE id(d) = {decisionId} AND id(ancestorD) = {ancestorDecisionId} RETURN path LIMIT {limit}")
List<Path> findPathsFromDecisionToAncestorDecision(@Param("decisionId") Long decisionId, @Param("ancestorDecisionId") Long ancestorDecisionId, @Param("limit") Integer limit);
In SDN 3.4.4.RELEASE
and Neo4j 2.3.3
for direct parent and child it reutrns 1 path
.
Right now in Neo4j 3.0.1
and SDN 4.1.1.RELEASE
it returns 0 path
.
Is it okay or this query should be rewrited ?