ArangoDB:语法错误意外的For声明

dzhpxtsq  于 2022-12-09  发布在  Go
关注(0)|答案(1)|浏览(125)

在下面的查询中,我想遍历一个图并获得欺诈节点的列表,然后我想获得图中这些欺诈节点之间的所有遍历。
欺诈节点我想存储在变量lstofnodes.如何解决这个错误?

let lstofnodes=(for doc in Account  
    filter doc.fraud == true
        for v in 1..3 outbound doc graph "G1"
            return distinct v._id)
            return lstofnodes
            for vertex in 1..3 outbound lstofndes  graph "G1"
                return distinct vertex._id
2nc8po8w

2nc8po8w1#

你能试试吗(第一次返回好像不对,但没有数据无法验证)

let lstofnodes=(for doc in Account  
filter doc.fraud == true
    for v in 1..3 outbound doc graph "G1"
        return distinct v._id)
        FOR startnode IN lstofnodes
        for vertex in 1..3 outbound startnode  graph "G1"
            return distinct vertex._id

相关问题