2017-07-28 165 views
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 

回答

2

AQL中的變量是不可變的,所以你不能重新賦值它們。見docs