0
親と子の2つの決定ノードがあります。Neo4j 3.0.1とSDN 4.1.1.RELEASEパスの検索
これらのノード間のパスを返す次のメソッドを実装しました。直接の親と子のための
@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);
SDN 3.4.4.RELEASE
で
とNeo4j 2.3.3
それが1 path
をreutrns。
今すぐNeo4j 3.0.1
とSDN 4.1.1.RELEASE
には、0 path
が返されます。
大丈夫ですか、このクエリは書き換えられるべきですか?