nebula 版本:v3.6
nebula studio -v3.7
执行下面语句 错误
MATCH p1 = (v:STB)-[e:OPTICALCIRCUIT*1…4]-(v2:OLT) WHERE id(v) == ‘100242028’ MATCH p2 = (v2:OLT)-[e:RELAYLINK]-(v3:SWITCH) UNWIND [p1,p2] AS p RETURN nodes(p) AS nodes,relationships(p) AS links
嗯,这里在 3.x 版本做了变更,在多跳的时候,e 返回的是 list,所以就不匹配了。
你这个感觉原来写得有点啰嗦,可以直接改成 MATCH p = (v:STB)-[e:OPTICALCIRCUIT*1…4]-(v2:OLT)-[e:RELAYLINK]-(v3:SWITCH) WHERE id(v) == ‘100242028’ RETURN nodes(p) AS nodes,relationships(p) AS links