Sophic
11/29/2021, 2:20 AManothercoder
11/29/2021, 2:22 AMSophic
11/29/2021, 2:23 AMsilentworks
11/29/2021, 9:10 AMchipilov
11/29/2021, 9:12 AMchipilov
11/29/2021, 9:12 AMStrift
11/29/2021, 10:47 AMStrift
11/29/2021, 10:47 AMStrift
11/29/2021, 10:48 AMsilentworks
11/29/2021, 3:29 PMsupabase-js
client library, this is great thanks for your work @User
https://postgrest.org/en/v9.0/releases/v9.0.0.html#resource-embedding-with-top-level-filteringsilentworks
11/29/2021, 3:37 PMsilentworks
11/29/2021, 3:44 PMHarryET
11/29/2021, 3:50 PMsilentworks
11/29/2021, 3:56 PMletourpowerscombine
11/29/2021, 4:45 PMusers
can subscribe to pages
and submit comments
on pages
. I have a users
table, a pages
table, a users_pages
table, and a comments
table.
I can currently pull a requested page
, along with the users
subscribed to it, with the following function. Is there anyway I can edit this to pull all of the comments
for the requested page as well? Trying to fetch all of the page
data in a single trip.
javascript
const { data, error } = await supabase
.from('pages')
.select(`*, users(id, email)`)
.eq('slug', request.body.get('slug'))
leynier
11/29/2021, 6:52 PMHarryET
11/29/2021, 7:07 PMleynier
11/29/2021, 7:21 PMe0
11/29/2021, 9:04 PMbent
11/30/2021, 1:27 AMbent
11/30/2021, 1:29 AMuser
11/30/2021, 3:18 AMclark@kent.com
peter@parker.com
bwayne@thebat.com
anothercoder
11/30/2021, 3:29 AMuser
11/30/2021, 3:31 AManothercoder
11/30/2021, 3:32 AMuser
11/30/2021, 3:33 AManothercoder
11/30/2021, 3:34 AMuser
11/30/2021, 3:35 AManothercoder
11/30/2021, 3:38 AManothercoder
11/30/2021, 3:40 AM