I am building an Android app using Back4App(Parse) database. I have two classes Post and Post_likes. I want to fetch all posts listing from Post table with individual post likes from post_likes table in the same query.
In Post table, I have post details like post_id, user_id and other details. In Post_likes table, I have user_id who liked the particular post corresponding to post_id.
Post_likes table with Post_id and user_id
Now, I want to get total post likes of corresponding post and users who like the particular post along with post listing.
I want to fetch total likes of particular post and then show in home screen post listing.
So, how to write the query to combine the two tables.
Any help will be deeply appreciated.