ZionniteOriginal post
Rank 2: Process
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??
Summary
Developers are asking for help on how to count the number of likes in a post using Appwrite. They mention that Appwrite does not provide an option to count attributes or documents. One suggestion is to move the counting up logic into a function. Another suggestion is to create another collection called "likes" with a relationship to each post using a unique key composed of the user ID and post ID. No solution is provided in the thread.