lucasb
07/16/2022, 2:25 PMzenny.eth
07/16/2022, 3:55 PMKolby
07/16/2022, 4:00 PMsupabase.auth.signUp
I attempt to insert a row into a users
table I created. I get a 401 if I have this policy enabled: Enable insert for authenticated users only
. I assume that since the user just signed up, that they are authenticated, but still the 401. Works fine when the policy is removed. I've also tried adding: { returning: 'minimal' }
since I've read it could be related to the return (select) policy, but no luck.
Any ideas? Thanksadamjarling
07/16/2022, 6:18 PMselect * from admins where admins.id = "somevaluehere"
It repeatedly tells me "column 'somevaluehere' does not exist". In the PostGres tutorials, this syntax looks valid, so not sure what I'm missing.Ess
07/16/2022, 8:57 PMmagicss
07/16/2022, 9:30 PMdrewbie
07/16/2022, 9:53 PMtandyman
07/16/2022, 9:59 PMMilfHunterLuci
07/16/2022, 10:16 PMreemwn
07/17/2022, 4:17 AMjar
07/17/2022, 4:26 AMsupabase.from('user_colors').match({user_id: some_user_id}).delete() and supabase.from('user_colors').insert([{user_id: some_user_id, color_id: "red"},{user_id: some_user_id, color_id: "green"},{user_id: some_user_id, color_id: "purple"}])
however I get error that I cannot do two operations on same row aka deleting red and adding red.
perhaps I need to not that red and green are maintained and use .not on the delete for those?
In which case how can I chain methods of nots in a loop
supabase.from('user_colors').match({user_id: some_user_id}).delete().not('color_id', 'eq', 'red').not('color_id', 'eq', 'green')
I assume is how i do then just upsert. But I have js list so how can i do for color in colors loop to add .nots in chain.
And if better way lmk thanks!𝐢𝐚𝐦𝐦𝐚𝐫𝐤𝐩𝐬
07/17/2022, 5:29 AMAnoushk
07/17/2022, 6:10 AMNeedle
07/17/2022, 9:01 AMani
07/17/2022, 9:24 AMhammerwithglory
07/17/2022, 10:42 AMAnurag
07/17/2022, 12:24 PMSiddharth
07/17/2022, 1:56 PMdaniellll
07/17/2022, 8:09 PMSacha
07/17/2022, 8:11 PMHendrix
07/17/2022, 9:12 PMAlan Coppin
07/17/2022, 9:32 PMzenny.eth
07/17/2022, 9:47 PMCould not find a relationship between 'shop' and 'person' in the schema cache
.nahtnam
07/17/2022, 10:00 PMgetServerSideProps
has a token and fetches the user, with a certain token
2. Calling supabaseClient.from().on()
does not work unless I do useUser()
and wait for that user to resolve which uses another token.
I was hoping to look into the <UserProvider user={}
prop to see if I can maybe pass in the user and token and fix #2 abovealexandre
07/17/2022, 11:21 PMAnurag
07/18/2022, 5:35 AMAndreas Møller
07/18/2022, 7:22 AMzenny.eth
07/18/2022, 7:47 AMTaofiq
07/18/2022, 7:50 AMMementoMori
07/18/2022, 8:21 AM