peterp
12/09/2021, 6:23 PMwiesson
12/09/2021, 7:22 PMwiesson
12/09/2021, 7:24 PManhoang
12/09/2021, 7:50 PMjjj.westra
12/09/2021, 9:01 PMjjj.westra
12/09/2021, 9:02 PMnode_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts:169:16 - error TS2304: Cannot find name 'ApiError'.
169 error: ApiError | null;
~~~~~~~~
jjj.westra
12/09/2021, 9:02 PMjjj.westra
12/09/2021, 9:26 PMjjj.westra
12/09/2021, 9:26 PMsilentworks
12/09/2021, 9:49 PMNiFTiChristian
12/10/2021, 2:49 AMalaister
12/10/2021, 2:52 AMcreate policy "Team members can update team details if they belong to the team."
on teams
for update using (
auth.uid() in (
select user_id from members
where team_id = id
)
);
How does this compare performance wise to:
create policy "Team members can update team details if they belong to the team."
on teams
for update using (
id in (
select team_id from members
where user_id = auth.uid()
)
);
Also what's the best way to profile queries with RLS enabled on Supabase?Martin INDIE MAKERS
12/10/2021, 4:13 AMconst { data, error } = await supabase.auth.api.createUser({
email: 'xxxxxxx@gmail.com',
password: 'xxxxxxxxx',
data: {
first_name: 'Martin',
last_name: 'Donadieu',
job: 'test job',
role: 'doctor',
},
})
console.log(data)
the log is egal to this :
{
id: 'b78b7f9c-0bb9-4ba5-9763-bb92c09d5fe2',
aud: 'authenticated',
role: 'authenticated',
email: 'xxxxxxx@gmail.com',
phone: '',
app_metadata: { provider: 'email', providers: [ 'email' ] },
user_metadata: {},
identities: null,
created_at: '2021-12-10T03:53:38.81179Z',
updated_at: '2021-12-10T03:53:38.813587Z'
}
None of my data are saved, did you already got this bug ?shinypb
12/10/2021, 6:13 AMun
12/10/2021, 6:32 AM!inner()
and using exactly the same code in docs. But it takes forever to load and gives "error":"FetchError: invalid json response body
reason: Unexpected token < in JSON at position 0
.
PS: Relation is many-to-many. So there is another table called "posts_tags" which includes ids of posts and tags.
The Code
const { data, error } = await supabase
.from(‘posts’)
.select('*, tags!inner(*)')
.eq(‘tags.name’, ‘tag-name’)
Edit2: I added .range(0,0)
so it will return the first row it finds. It works even with name but still incredibly slow. When I make .range(0,1)
it takes forever again and gives to error above.
Verdict: !inner()
is painfully slow. Is there any way to query through M2M tables?Mathel
12/10/2021, 12:33 PMselect(
name,
survey (
title
)
)
survey is returned as array. How to return it as a single element?max
12/10/2021, 3:38 PMconst votes = supabase
.from(`votes:user_id=eq.${userId}&date_id=eq.${dateId}`)
.on("DELETE", (payload) => {
setHasVoted(false)
})
max
12/10/2021, 3:40 PM&
doesn't work, not sure if this is possible and what the syntax would bed3m4
12/10/2021, 3:53 PMharshcut
12/10/2021, 5:36 PMlinear-gradient
and i can't seem to implement a tailwind class inside tailwind.config.js
that would set the gradient as a background
rather than background-color
. is there any way to do that?
white: 'linear-gradient(90deg, #ffffff 50%, #eeeeee 50%)',
black: 'linear-gradient(90deg, #1f1f1f 50%, #2a2a2a 50%)',
jonny
12/10/2021, 6:09 PMFrankS
12/10/2021, 6:17 PMngoctranfire
12/11/2021, 2:16 AMngoctranfire
12/11/2021, 2:17 AMngoctranfire
12/11/2021, 2:18 AMMondocooler
12/11/2021, 5:55 AMMondocooler
12/11/2021, 5:55 AMMondocooler
12/11/2021, 6:01 AMMondocooler
12/11/2021, 6:07 AM