- I have a social media app.
- All users can like posts.
- I wanna integrate a function to see all the posts that a user has liked.
I already tryed adding a list called likes inside each post with each name of the users who have liked the post
Then query the data with this:
Query query = myRef.orderByChild("likes/" + uid).equalTo(true);