springboot+Neo4j+apoc,返回路径排序问题,请大神解答
发布于 3 年前 作者 walkfish_zhang 557 次浏览 来自 问答

CQL如下: MATCH (p1:point {pid:“68dca0bec31f43cc8a7e080418467d27”}) MATCH (p2:point {pid:“7c2bd070ffaf474388abccb169bd2db3”}) MATCH (p3:point {pid:“3f54514a721b495d86b6bcd58343fd29”}) MATCH (p4:point {pid:“3201c422e0d54a2ab9daa4030d502510”}) CALL apoc.path.expandConfig(p1, { relationshipFilter: “down”,
minLevel: 1,
maxLevel: 30,
bfs:true, endNodes: [p2,p3,p4]
}) YIELD path
WHERE all(n in nodes(path) WHERE n.pz>=p1.pz ) RETURN path 2.png

通过springboot,获取relationships返回的list, 3.png 顺序乱了,请大佬指教 1.png

回到顶部