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
- Flutter SDK broken by cloud.
Today I woke up to find all my flutter amd appwrite projects not working due to the sdk throwing error "Type "String" is not a subtype of "int"". Something chan...
- Database listRows method call failing in...
I'm getting an error when trying to use listRows in a flutter app on a database. It seems something in the backend has changed because the production version of...
- Realtime Connection Count only goes up
I just wanted to ask if this behavior is normal. I restarted realtime 2 days ago and it already reached a connection count of over 11k. The count only goes up. ...