Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(studio): allow graphql_public schema in exposed schemas (#43702)

Alaister Young6b8727928807
diff --git a/apps/studio/components/interfaces/Settings/API/PostgrestConfig.tsx b/apps/studio/components/interfaces/Settings/API/PostgrestConfig.tsx
index 5eb62bc31c4..2fe98e56239 100644
--- a/apps/studio/components/interfaces/Settings/API/PostgrestConfig.tsx
+++ b/apps/studio/components/interfaces/Settings/API/PostgrestConfig.tsx
@@ -125,7 +125,10 @@ export const PostgrestConfig = () => {
const schemas = useMemo(
() =>
allSchemas
- .filter((x) => !INTERNAL_SCHEMAS.some((schema) => schema === x.name))
+ .filter((x) => {
+ if (x.name === 'graphql_public') return true
+ return !INTERNAL_SCHEMAS.includes(x.name)
+ })
.map((x) => {
return {
id: x.id,