How do I query for paths in spring data neo4j 4?

后端 未结 2 558
闹比i
闹比i 2020-12-11 09:43

In an earlier version of spring data neo4j (3.3.1), I was able to query for paths in my database and return them as Iterable> like t

2条回答
  •  抹茶落季
    2020-12-11 10:45

    EntityPath isn't supported in SDN 4, but you can still query for paths. I have an example here which contains a Cypher query that returns a path- the return type is Iterable>

    This represents a collection of paths, each path containing a list of interleaved nodes and relationships in the path (nodes and relationships represented as a Map). An example of how I processed the path is https://github.com/luanne/flavorwocky/blob/sdn/src/main/java/com/flavorwocky/service/PairingServiceImpl.java#L57

提交回复
热议问题