I have two tables one for post and one for likes. Post table stores all the post information. Likes table has 3 columns
id, post_id user_id
Now I need help to figure out how to get total number of likes of each post through supabase query. I am using react for frontend.
const { data, error } = await supabase
.from('feedback')
.select()
.order('created_on', { ascending: false });