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
- No server error on selfhosted appwrite
Please help me, my clients is ask what happen on their data? How can i make it up again?
- Upgrading selfhost version?
It is okay to upgrade version to higher one, of my current version is 1.7.4 to 1.8.1. Is that safe to do cause my clients already have data on that? Also is a...
- Streamlit UI and local DB
I want to use Appwrite for automation, like run watchdog service every morning 3 am. Anyone got suggestions, already explored github and documentation no luck. ...