neo4j多个match转nebula

neo4j语句:
MATCH (t:f860ef04-c4{age:7}) WHERE t.times>= “2021-01-06” and t.times<= “2021-10-12” WITH t
MATCH (t)-[r]->(n:f860ef04-c4) WITH n
MATCH (n)-[r]-(m {sex:1}) RETURN *
转为nebula:我尝试使用lookup fetch go 加管道都无法达到合并neo4j多个match语句的效果,有大佬晓的吗?在线等 急

nebula 目前还不支持多 pattern,但是你的这条语句看起来 pattern 是可以合并的。

MATCH (t:f860ef04-c4{age:7})-[r1]-(n:f860ef04-c4)-[r2]-(m{sex:1})
WHERE t.times>= “2021-01-06” and t.times<= “2021-10-12” 
RETURN n, r2, m
1 个赞

如果MATCH (t:f860ef04-c4{age:7}) WHERE t.times>= “2021-01-06” and t.times<= “2021-10-12” WITH t
order by t.name desc skip %d limit %d 后面跟了skip和limit呢 就没法合并了

是的

浙ICP备20010487号