如何查询OrientDB中的嵌套链接?我的架构如下所示:
Domain (as a Class)
Attribute (as a Link)
... properties
Value (as a Link)
... properties
我是OrientDB的新手,到目前为止,我已经尝试过Fetchplans和UnionAll,但似乎无法将结果恢复到我想要的结构中。
select expand($c)
let $a = ( SELECT EXPAND(Attribution) FROM #25:0 ),
$b = ( SELECT EXPAND(Value) From (SELECT EXPAND(Attribution) FROM #25:0) ),
$c = unionAll($a,$b)