Hello world! Suppose i have this json stored is database. { "array" : [ 1, 2 ] } Then, two clients run cloud code and try to update this array like this. Client_1 -> [ 3, 4 ] Client_2 -> [ 5, 6 ] If they both call addOrUpdateKeys on this array i will get [ 1, 2, 3, 4, 5, 6 ] ( the elements order doesn't matter ). Or we will get situation when ( suppose ) Client_1 override array with values [ 3, 4 ] and then Client_2 override array to, and as result we will get [ 5, 6 ] ?
------------------------
Is there any api to remove or add element to jsonarray without touching another elements in array?
And can we remove value by key without retrieving JSONObject first?