You can initialize a new Supabase client using the
The Supabase client is your entrypoint to the rest of the Supabase functionality and is the easiest way to interact with everything we offer within the Supabase ecosystem.
The unique Supabase URL which is supplied when you create a new project in your project dashboard.
The unique Supabase Key which is supplied when you create a new project in your project dashboard.
No description provided.
By default the API server points to the
public schema. You can enable other database schemas within the Dashboard.
Settings > API > Schema and add the schema which you want to expose to the API.
Note: each client connection can only access a single schema, so the code above can access the
other_schema schema but cannot access the
supabase-js uses the
cross-fetch library to make HTTP requests,
but an alternative
fetch implementation can be provided as an option.
This is most useful in environments where
cross-fetch is not compatible (for instance Cloudflare Workers).