Rank 1: Thread
i have an array attribute in my db and i want to update it by pushing a new value into it. how can i achieve this ??? PLEASE I NEED HELP !
#channel
Votes
1
Replies
7
Participants
Unknown
Messages
8
Rank 1: Thread
i have an array attribute in my db and i want to update it by pushing a new value into it. how can i achieve this ??? PLEASE I NEED HELP !
#channel
The best way that I think to do this would be to fetch the value and do the changes in whichever language you're using and then push the entire new array as an update to the document
Rank 1: Thread
okay, i'll give it a tru
Rank 1: Thread
try*
Rank 1: Thread
Thanks @Ryan
Also if you want to do that while not running into race conditions take a look at: https://discord.com/channels/564160730845151244/1182156887286882324
Rank 1: Thread
@WhiteWalker72 thanks mate
what i did in my case, is creating two loaders one the get the existing list in the Document using the docId in a Query.
Rank 1: Thread
then an other loader in which i push the new value in the array i've already got and send the new array to the target document with an update action