diff --git a/apps/docs/content/guides/api/using-custom-schemas.mdx b/apps/docs/content/guides/api/using-custom-schemas.mdx index 9b431d22385d4..dc788a700250d 100644 --- a/apps/docs/content/guides/api/using-custom-schemas.mdx +++ b/apps/docs/content/guides/api/using-custom-schemas.mdx @@ -56,6 +56,12 @@ const { data: todos, error } = await supabase.from('todos').select('*') const { data: todos, error } = await supabase.schema('myschema').from('todos').select('*') ``` + + +With generated `Database` types that include `public`, `createClient(...)` type-checks `db.schema` against `public` only, unless the schema name is also passed as the second generic: `createClient(...)`. `supabase.schema('myschema').from(...)` infers its schema per call and needs no second generic. In both cases `myschema` has to be present in the generated `Database` type. + + + <$Show if="sdk:dart">