Star

怎么查询双向边的数据?

请问怎么查询双向边的数据?现在用BIDIRECT关键字查询会将单向边也返回,但我想要的是双向边,即A->B,B->A,A->C,我查询A的双向边的时候,我只需要返回A->B和B->A,不需要返回A->C,但目前nebula会将后者也返回

go FROM hash(“UR12345”) OVER follow BIDIRECT where follow.status == 1 YIELD follow.intimacy,follow.status,follow.status_change_time,$$.user.active_time as active_time,$$.user.user_no as user_no,$$.user.user_name as user_name,$$.user.head_img_url as head_img_url

比如这种会返回用户UR12345关注的,和关注UR12345的所有用户,但我想查询的是UR12345用户关注的且关注了UR12345用户的用户

试试find path bidirect.

请问具体要怎么改呢? :thinking:

哈喽,咱们有中文论坛的哈,用中文讨论还麻烦移步中文论坛:https://discuss.nebula-graph.com.cn :grinning: