
hey guys, i have this project where user create a post and users can like a post, but now, i cant seem to be able to count the number of likes, it seem like Appwrite did not provide the option to actually count attribute or document
please guys, how do i do this??

For that the best way would be to move the counting up logic into a function
And, if you don't want same user like more than once, then you'll be best creating another collection named likes
with relationship to the each post with unique key composed from user id and post id.
Recommended threads
- Issue in saving special character ' ╟ '...
I've created a chat application using Appwrite. However, when users try to save code that contains the character '╟', an internal server error occurs. Interesti...
- Invalid relationship value. Must be eith...
I'm getting this error when i try to update a document. The collection has a relatipship with 2 other collections. I don't understand why, when i update the doc...
- Auth issue: 401 general_unauthorized_sco...
Hello, I face a big problem with Appwrite Auth that I never face before. It's very simple, the most basic auth process just don't work ```dart final client = ...
