SupabaseS
Supabase11mo ago
Jayani

Exposing non-public schema to postgrest

I am trying to set up a users schema not in the public schema to handle permissions. I HAVE set the schema to be exposed in settings/API.
But when trying to query the api it seems to default to the public schema.

response = supabase.table('users.user_details').select("*").execute()
throws error:
Error fetching user details: {'code': '42P01', 'details': None, 'hint': None, 'message': 'relation "public.users.user_details" does not exist'}
Was this page helpful?