标签: 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
答案 0 :(得分:2)
AQL中的变量是不可变的,因此您无法重新分配它们。见docs