
I have a collection where one of the attributes is an Array. I want to add a value to this array, and to make it as efficient as possible The simple way would be :
- To get the Array,
- to add the new value to the Array
- to update the document with the new array
but it requires 2 interactions with the database (and if I dont know the ID of the document, 3) I am trying to make it all in a single interaction: Just to add the vew value in the Array with the UpdateDocument function Is it possible?
Thanks,

Add a value to Array in document

Array operations like this aren't available yet

you can achieve this with the help of cloud function.

Thank you

If your issue has been solved, you can mark this post as closed by adding “[SOLVED]” to the beginning of the title
Recommended threads
- 2 Columns still processing since yesterd...
Hey o/ Yesterday (around <t:1758045600:f>), I created a database and added several columns to it. After about 15 minutes, most of the "processing" tags disappe...
- 503 Timeout when Updating or Upserting D...
Hey I’m running into an issue when trying to update or upsert a row in Appwrite. The request hangs for a while and then throws this error: ``` AppwriteException...
- Row with the requested ID already exists...
I’m hitting a blocking issue creating rows in Appwrite (both from the console and my React Native app). After successfully inserting the first row, every subseq...
