I am trying to update a document in a collection (units) using GUI and after it gets updated I want to update the value (user.Units which is an array of Unit names) in collecti
Refer to this issue. One way to solve this would be not to update your array via the classic array Index method. So do this
doc.array.set(index, value);
Instead of
doc.array[index] = value;
also view the FAQ and doc for more details.