0
我怎样才能有一个变量增加一个循环?我试过这个AQL,它不起作用Arangodb的循环变量
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
我怎样才能有一个变量增加一个循环?我试过这个AQL,它不起作用Arangodb的循环变量
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
AQL中的变量是不可变的,所以你不能重新赋值它们。见docs