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
- All My Project is Gone
Hello everyone, please help. Why have all my projects suddenly disappeared? I received a warning via email about one of my projects being paused. When I clicked...
- Courtesy limit reset for non-profit migr...
Hi Team! I'm the architect for a 501(c)(3) non-profit project (Aaria's Blue Elephant) and we just hit our Free plan Database Read limit (currently at 164%). Th...
- Does 1.9.0 Self Hosted have MongoDB Atla...
I have been playing with the new 1.9.0 update and I am really excited for the MongoDB support. I wanted to ask though if at the current time Appwrite supports b...