Likes system
#3675
Replies: 1 comment 6 replies
-
If I understand you correctly, you want to check if a user liked a post. In that case why not simply use many to many relationship and query that user - item combination? If it exists, the user liked the post. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I need help with make like system in adonisJS application.
I tried make likeStatus in model
And make method for use likeStatus
And use it like this
And... this is works! But! When i'm used CRUD operations except get from DB, application throwed error like this
I suggested to my employee to keep all likes array with other used data, when it logged in, and set like for posts and stories in frontend side. But he told me it's not right because this array might be too big.
What is the right thing to do in this situation?
Beta Was this translation helpful? Give feedback.
All reactions