首页 > 解决方案 > OrientDB:如何在 orientdb 中按节点过滤 Edge

问题描述

如何按节点条件过滤边缘?下面是我的查询,我想通过以 id 222 结束节点来进一步过滤路径

SELECT $path as path FROM ( TRAVERSE bothE(),bothV() FROM (select * from Node where (id in ['111'])) WHILE $depth <= 6 ) where @rid in (select @rid from Node where (['222'] 中的 ID))

但是,查询只返回一个路径。但我知道,有几种途径。

标签: orientdb

解决方案


推荐阅读