@Query("MATCH (parentD:Decision)-[:CONTAINS]->(childD:Decision)-[ru:CREATED_BY]->(u:User) WHERE id(parentD) = {parentDecisionId} RETURN childD, ru, u ORDER BY childD.createDate DESC")
List<Decision> getChildDecisions(@Param("parentDecisionId") Long parentDecisionId);
Is it possible to pass order expression like childD.createDate
and order direction like ASC
or DESC
via Spring Data Neo4j 4 repository method parameters ? If so, could you please show an example.
Or do I need to use Pageable
in this case ?