You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new schema 'myschema' in Supabase project.
Grant privs as in docs:
GRANT USAGE ON SCHEMA myschema TO anon, authenticated, service_role;
GRANT ALL ON ALL TABLES IN SCHEMA myschema TO anon, authenticated, service_role;
GRANT ALL ON ALL ROUTINES IN SCHEMA myschema TO anon, authenticated, service_role;
GRANT ALL ON ALL SEQUENCES IN SCHEMA myschema TO anon, authenticated, service_role;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA myschema GRANT ALL ON TABLES TO anon, authenticated, service_role;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA myschema GRANT ALL ON ROUTINES TO anon, authenticated, service_role;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA myschema GRANT ALL ON SEQUENCES TO anon, authenticated, service_role;
Add myschema to Project Settings -> API Settings -> API settings -> Exposed schemas
Create a table 'mytable' in myschema and add a row of data.
Configure your nuxt.config.ts file:
Version
@nuxtjs/supabase: v1.1.0
nuxt: v3.7.3
Steps to reproduce
Create a new schema 'myschema' in Supabase project.
Grant privs as in docs:
Add myschema to Project Settings -> API Settings -> API settings -> Exposed schemas
Create a table 'mytable' in myschema and add a row of data.
Configure your nuxt.config.ts file:
Create a server API route:
Call the endpoint from your Vue page.
What is Expected?
Variable 'data' should contain the row from myschema.mytable.
What is actually happening?
Variable 'data' is always null.
When you look in the database logs you see:
Other comments.
If you place the following code in the Vue page:
The variable 'data' is populated with the row from mytable correctly.
The text was updated successfully, but these errors were encountered: