Hi everyone, sorry for asking a simple question here. I'm building a blog website with Appwrite, and I want to increment the like count stored in the database.
In MongoDB, I can use $inc, and in SQL-based databases, I can use an UPDATE query to achieve this.
My question is: how can I do this in Appwrite? The only workaround I can think of right now is to retrieve the count from the database, increment it in my code, and then update the database. However, I feel this might not be ideal for performance.
Yes only way… at least that i know off… did you try to use $inc?
Beacuse there is the same thing for array and I managed to use $push
Recommended threads
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...