请教nGQL的with语句结合match语句的使用

提问参考模版:

  • nebula 版本:(为节省回复者核对版本信息的时间,首次发帖的版本信息记得以截图形式展示)
  • 部署方式: 单机
  • 安装方式:RPM
  • 是否上生产环境:Y )

老师们下午好,请教一个nGQL语句的问题

match(n:Person)-[v:person_vehicle]-(n1:Vehicle)
where id(n)=="xxxx"
with n1.Vehicle.plate_value as plate,count(*) as cnt 
order by cnt
where cnt>1
**match(n:Person)-[v:person_vehicle]-(n1:Vehicle{plate_value:plate})**  (就是最后这个语句不会引用属性值)

我需要将过滤后的结果再放入match语句中查询,但目前with保存下来的东西是Vehicle这个tag的属性,请问如何再进行查询时引用到保存下来的属性值。

可以用 WHERE clause 哈

match (n:player)
  where id(n) == "player100"
with n.player.name as name_
match (n:player)
WHERE n.player.name == name_ return n

此话题已在最后回复的 30 天后被自动关闭。不再允许新回复。