Rank 1: Thread
I have a collection where one of the attributes is an Array.
I want to add a value to this array, and to make it as efficient as possible
The simple way would be :
- To get the Array,
- to add the new value to the Array
- to update the document with the new array
but it requires 2 interactions with the database (and if I dont know the ID of the document, 3)
I am trying to make it all in a single interaction:
Just to add the vew value in the Array with the UpdateDocument function
Is it possible?
Thanks,