
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 ! <#1072905050399191082>

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

okay, i'll give it a tru

try*

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

@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.

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
Recommended threads
- The current user is not authorized to pe...
Hello, I am attempting to receive fetch data from databases.listDocuments with each of its env parameter data for it to be shown on a NextJS project. However I ...
- Error 400: redirect_uri_mismatch
The uri that I get from Appwrite and the one that I insert in the Google console are identical and yet I get this error while using Google Sign In:
- deployment on Vercel ??
