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
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...
- custom domain with CloudFlare
Hi all, it seems that CloudFlare has blocked cross-domain CNAME link which made my app hostname which is in CloudFlare, unable to create a CNAME pointing to clo...
- Custom emails
What happen if I use a third party email provider to customize my emails and my plan run out of emails/month? Appwrite emails are used as fallback sending emai...