Xzeta
11/10/2021, 2:15 AMScott P
11/10/2021, 2:31 AMstories
, post_comments
and post_reactions
.
Each row in post_comments
and post_reactions
would have a column called story_id
which would have a relation to stories.id
.
Then, you should be able to do something like this:
js
const { data, error } = await supabase
.from('stories')
.select(`
*,
post_comments:story_id ( * ),
post_reactions:story_id ( * )
`)
Xzeta
11/10/2021, 2:54 AM