.insert().select() doesnt work due to rls
Insert alone works
Select RLS:
user_id in table questions is set with default value auth.uid()7 Replies
What is your question?
You don't meet RLS for the select policy so the insert will fail.
Ah yeah, tried to keep it short
I'm somehow don't meet select policy
Are default values for the table propagated later? I checked my code and I never specify
user_id there so it should be set to default, when I comment select its exactly what happens
Disabling RLS policies work, but as far as I know these policies are permissive by default so either one that passes should action availableIt should be there for your select policy.
What is this though?

You can also check in the dashboard Gateway API log on that insert (POST) and see if the role is authenticated or not.
Should be, will check
Note the typo in red.