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
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...
- Type Mismatch in AppwriteException
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in pr...