1

在 orientdb 提供的 Grateful dead 数据库中尝试这个查询会得到 146 条记录: select expand(in('sung_by')) from V where name = 'Garcia'

但是当我们尝试以下查询的类似版本时:select expand(in(sung_by)) from V where name = 'Garcia',返回 150 条记录

是bug吗??刚从上周开始尝试 orientdb,遵循本网站的教程,这是发现的第二个问题。

4

1 回答 1

2

通过 using select expand(in(sung_by)),该字段的值sung_by在查询执行时被解析,但没有字段称为sung_by,因此为 null。

因此,就像select expand(in())在这种情况下执行一样。相反,通过使用'sung_by',只会sung_by遍历带有标签的边。

因此,始终"'围绕边缘的类/标签进行遍历。

于 2017-02-18T05:04:05.700 回答