elliott
03/09/2022, 2:09 AM.from('reviews')
.select('*, profile:user_id(*)')
which works fine. However, I want to also get a relation from the profile table, which has followers. Something like this:
.from('reviews')
.select('*, profile:user_id(*, follows:follower_id(*))')
Where follower_id is the ID that a "follow" object has which relates to the id of a "follow" to the "profile" table. I want to be able to use this "follows" object in the filtering of the query later.
Does this question make sense? Sorry my SQL skills are weak, still learning. I've read the docs through for what it's worth and couldn't figure this one out.. Thank you!garyaustin
03/09/2022, 2:33 AMelliott
03/09/2022, 9:37 AMelliott
03/09/2022, 9:37 AM