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
- Project paused despite active use — rest...
Hey team! My Appwrite Cloud project (685579e5000d78e67009) has been marked as paused due to inactivity, but it's actively used in production. I clicked the Rest...
- Creation failedUnknown sort order:asc. M...
Hi there, I'm getting this error on self hosted when trying to create an Index. Any ideas?
- Export, Import or Migration giving this ...
As you can see in yhe screenshot i am not able to export any data or export the data from tables. Also it is affecting the migration from appwrite to appwrite h...