大佬们,怎么筛选路径中的标签,求解
我想筛选p中的标签,比如刘邦和项羽的标签是people,楚汉相争和鸿门宴的标签是event
我想筛选标签是event的数据把楚汉相争和鸿门宴查出来,我应该加什么过滤条件
MATCH p=(n)-[r*…6]-(m) where n.node_name=~‘刘邦’ and m.node_name=~‘项羽’ return p,length§ as pathLength order by pathLength limit 10
MATCH p=(n)-[r*..6]-(m)
where n.node_name=~'刘邦' and m.node_name=~'项羽'
RETURN length(p) as pathLength,[x IN nodes(p) | x.node_name ] as `nodeNames`
order by pathLength limit 10