# Create single like count per user

**URL:** <https://forum.adalo.com/t/create-single-like-count-per-user/24547>\
**Category:** Database\
**Created:** [March 13, 2022, 5:15pm UTC](https://forum.adalo.com/t/create-single-like-count-per-user/24547 "2022-03-13T17:15:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pauladams](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/pauladams/32/5449_2.png) [@pauladams](https://forum.adalo.com/u/pauladams)\
**Post date:** [March 13, 2022, 5:15pm UTC](https://forum.adalo.com/t/create-single-like-count-per-user/24547/1 "2022-03-13T17:15:13Z")

</div>

Hey Adalo Friends, I am designing a product hunt lookalike and i run into an issue.

When I created the vote counter, It keeps counting for everyclick. but i want one user to be able to vote once.

Here’s a video to the app.

Do let me know how i can fix this. Thank you.

---

<div class="post-metadata">

**Author:** ![Eugen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/eugen/32/25382_2.png) [@Eugen](https://forum.adalo.com/u/Eugen)\
**Post date:** [March 13, 2022, 5:25pm UTC](https://forum.adalo.com/t/create-single-like-count-per-user/24547/2 "2022-03-13T17:25:11Z")

</div>

Hello, you should add a “Liked By” relationship property between users and posts, so once an user hit the like button, update current post - liked by - add logged in user, then add +1 on the counter only if (advanced - sometimes ) current post - liked by - does not contain - logged in user.  
Hope that helped

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [March 13, 2022, 5:26pm UTC](https://forum.adalo.com/t/create-single-like-count-per-user/24547/3 "2022-03-13T17:26:39Z")

</div>

Hi Paul,

You can create a many to many relationship and add logged in user there and make the counter update action conditional. Oh Eugen already answered! 👍

Thank you

---

<div class="post-metadata">

**Author:** ![pauladams](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/pauladams/32/5449_2.png) [@pauladams](https://forum.adalo.com/u/pauladams)\
**Post date:** [March 14, 2022, 7:01am UTC](https://forum.adalo.com/t/create-single-like-count-per-user/24547/4 "2022-03-14T07:01:52Z")

</div>

Thanks It worked. The many to many relationships was what I needed instead of creating an extra collection. Thank you

---

<div class="post-metadata">

**Author:** ![pauladams](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/pauladams/32/5449_2.png) [@pauladams](https://forum.adalo.com/u/pauladams)\
**Post date:** [March 14, 2022, 7:02am UTC](https://forum.adalo.com/t/create-single-like-count-per-user/24547/5 "2022-03-14T07:02:08Z")

</div>

Thank you Eugen, it worked.
