A like sistem for a list

Hello,
I need help in my app Post’n
the thing is people can post things and i want a Like button with counter,how i do that?

Greetings,
Yazide

So have a mutilple to multiple relationship between the Posts collection and Users called “LikedBy”.

Then you can use- Current Post > Users(LikedBy) > Count to see how many likes the post has had.

Have a like icon: sometimes visible: IF current post > Users(likedBy) > All - does not include Logged in User.

Action on Like icon should be Update current post > Users(LikedBy) > Add logged in user.

I think I got that right.

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.