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
- Docker Compose MongoDB Setup
everythings work fine but the mongodb fails on startup everytime. log: ``` Generating random MongoDB keyfile... /bin/bash: line 9: : No such file or directory ...
- Auth broken after update from 1.8.0 to 1...
So ive been having issues creating, deleting or updating users on my appwrite instance after i updated from 1.8.0 to version 1.9.0. When trying to create a user...
- Magic Link woes/noob
Magic Link is working; it sends the link to my email. But the link itself always leads to "Page Not Found. The page you're looking for doesn't exist". Clicking ...