Bug report
Describe the bug
I enabled RLS for one of my tables say "profiles".
When I execute this code
const { error: deleteError, data } = await supabase
.from("profiles")
.delete()
.eq("user_id", userId)
As expected, nothing gets deleted from my DB due to RLS enabled and no policy for delete. But, I also don't see any error in deleteError variable. I was expecting it to throw error something like "Error in deleting items due to RLS"
Is this expected?
To Reproduce
Mentioned above
Expected behavior
I was expecting it to throw error something like "Error in deleting items due to RLS".
Screenshots
If applicable, add screenshots to help explain your problem.
System information
- OS: MacOS
- Browser: Brave
- Version of supabase-js: 2.45.3
- Version of Node.js: 18.20.4
Additional context
Add any other context about the problem here.
Bug report
Describe the bug
I enabled RLS for one of my tables say "profiles".
When I execute this code
As expected, nothing gets deleted from my DB due to RLS enabled and no policy for delete. But, I also don't see any error in
deleteErrorvariable. I was expecting it to throw error something like "Error in deleting items due to RLS"Is this expected?
To Reproduce
Mentioned above
Expected behavior
I was expecting it to throw error something like "Error in deleting items due to RLS".
Screenshots
If applicable, add screenshots to help explain your problem.
System information
Additional context
Add any other context about the problem here.