hey guys, I need some help, I've setup a schema wi...
# sql
g
hey guys, I need some help, I've setup a schema with RLS, but I'm getting this:
Copy code
json
{
  "message": "new row violates row-level security policy for table \"families\"",
  "code": "42501",
  "details": null,
  "hint": null
}
Only when I create an item using
Prefer return=representation
to return the created object, if I perform the POST request without it, it works. I suppose it's a lack of permissions for selecting. Here is the whole code (https://gist.github.com/grsouza/4d6d0fc25fd69156e2789fe52eafa7ef)
g
Unless you use returning minimal you have to meet select RLS policy on insert.