GO FROM 3436443372514187470 OVER Relation BIDIRECT WHERE Relation.name=="XXX” \
YIELD $^.Company.name, $$.Company.keyno as keyno, \
$$.Company.name as name, Relation.keyno as keyno2 | \
fetch prop on TagB hash($-.keyno2) yield properties(vertex).publish_time as t | \
order by $-.t
不好意思哈,前面信息比较多,有点乱。
现在结构时这样的
A - Relation - B
Relation 上有个keyno/ _rank 存放C 的vid
希望获取的B 的信息, 同时根据C节点的publish_time 属性进行排序。
GO FROM 3436443372514187470 OVER Relation BIDIRECT WHERE Relation.name=="XXX” \
YIELD $^.Company.name, $$.Company.keyno as keyno, \
$$.Company.name as name, Relation.keyno as keyno2 | \
fetch prop on TagB hash($-.keyno2) yield properties(vertex).publish_time as t | \
order by $-.t
GO FROM 3436443372514187470 OVER Relation BIDIRECT WHERE Relation.name=="XXX” \
YIELD $^.Company.name, $$.Company.keyno as keyno, \
$$.Company.name as name, Relation.keyno as keyno2 | GO FROM hash($-.keyno2) OVER * YIELD $-.name, $-.keyno, properties($$).publish_time as t | order by $-.t