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
- Urgent help with removed databases
Hi <@564158268319203348> <@501784879638249472> I wrote to paid plan support about this but no response as of yet… About an hour ago one of the interns from o...
- MariaDB refuses to connect to appwrite
Earlier, I tried updating my Appwrite version from 18.1.x to the latest release because my Flutter package required it to function properly. I used the official...
- executeFunction intermittently throws Fo...
Environment: Flutter app using the Appwrite Flutter SDK, calling executeFunction for [describe endpoint, e.g. live-stream-related function]. *Description*: Int...