Arangodb的循环变量

时间:2017-07-28 10:21:05

标签: arangodb

如何在循环中增加一个变量?我试过这个AQL但它不起作用

LET x=0 // I am trying to find a way to increase this one over some conditions
FOR v IN male
Update v WITH (count:x+1) IN male

1 个答案:

答案 0 :(得分:2)

AQL中的变量是不可变的,因此您无法重新分配它们。见docs