There is no method in the documentation which lets us add a single element to a document. The only way is to first get the current array and then add form a new array and send it to the database using updateDocument method. Is there any better solution to this?
I think you got on the spot. For now, if you want to update array attribute you'll have to concat the current version.
Recommended threads
- tablesDB.updateRow() properly updates co...
I did not thoroughly investigate, but the issue does not seem to stem from actual permission errors (despite the error message). My tables have table-level perm...
- 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...