kennethcassel
08/04/2021, 5:12 PMconst { data: courses, error } = await supabase
.from('courses')
.select(
`*,
lessons (
lesson_id, lesson_order)`
)
.eq('user_id', user.user_id)
But then I want to also filter on the lessons column where the lesson_order = 0Mihai Andrei
08/04/2021, 6:03 PMjs
const { data: courses, error } = await supabase
.from('courses')
.select(
`*,
lessons (
lesson_id, lesson_order)`
)
.eq('user_id', user.user_id)
.filter('lessons.lesson_order', 'eq', '0')
// or 0 if it is not a string
timusk
08/04/2021, 8:43 PMETIMEDOUT
errors with the Supabase JS client recently - does anyone know why?kennethcassel
08/04/2021, 8:52 PMkennethcassel
08/04/2021, 8:52 PMMihai Andrei
08/04/2021, 8:54 PMkennethcassel
08/04/2021, 9:24 PMMihai Andrei
08/04/2021, 9:46 PMFishball_Noodles
08/04/2021, 10:40 PMRichie
08/04/2021, 11:57 PMviennv1709
08/05/2021, 1:29 AMVillage
08/05/2021, 1:42 AMtimusk
08/05/2021, 2:09 AMMihai Andrei
08/05/2021, 3:04 AMcole
08/05/2021, 3:42 AMs u s h i
08/05/2021, 5:01 AMa d
08/05/2021, 5:32 AMMihai Andrei
08/05/2021, 8:05 AMnazeeh
08/05/2021, 9:43 AMuser
08/05/2021, 10:57 AMlouis.barclay
08/05/2021, 1:27 PMsilentworks
08/05/2021, 1:31 PMpublic.users
table too, this is the easiest way to be able to query it, otherwise create a Postgres View based on the auth.users
table.louis.barclay
08/05/2021, 1:32 PMpublic.users
table from the outset. Is there any API I can use to grab emails from auth.users
and fill public.users
?silentworks
08/05/2021, 1:33 PMauth.users
, just make sure you don't expose every column in the viewlouis.barclay
08/05/2021, 1:49 PMkennethcassel
08/05/2021, 3:23 PMkennethcassel
08/05/2021, 3:48 PMlearn-supabase.slip.so
or git-mastery.slip.so
. I want a user to be able to register or login and get redirected back to the specific subdomain for a particular course. So I'd want to setup a pattern in auth for allowed redirects like .slip.so/login
kennethcassel
08/05/2021, 3:49 PMYelloJello
08/05/2021, 4:27 PMYelloJello
08/05/2021, 4:40 PM