From 6d728885d319ccf2c4994eaa92d90d5ce84bb461 Mon Sep 17 00:00:00 2001 From: Gaurav Deep <118678150+GAURAV-DEEP01@users.noreply.github.com> Date: Thu, 26 Jun 2025 21:51:20 +0530 Subject: [PATCH 1/3] docs: fix RPC example for parameterless calls by adding undefined (#36714) docs: fix RPC example when using options for parameterless call (#36713) --- apps/docs/spec/supabase_js_v2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/docs/spec/supabase_js_v2.yml b/apps/docs/spec/supabase_js_v2.yml index 1a415da3fef8c..b69b6cb68af7e 100644 --- a/apps/docs/spec/supabase_js_v2.yml +++ b/apps/docs/spec/supabase_js_v2.yml @@ -4406,7 +4406,7 @@ functions: name: Call a read-only Postgres function code: | ```ts - const { data, error } = await supabase.rpc('hello_world', { get: true }) + const { data, error } = await supabase.rpc('hello_world', undefined, { get: true }) ``` data: sql: | From 1e983eb6cf499ed3d83bfdea1d2ecd615f20c9ad Mon Sep 17 00:00:00 2001 From: skelbon <119545226+skelbon@users.noreply.github.com> Date: Thu, 26 Jun 2025 17:26:56 +0100 Subject: [PATCH 2/3] docs(auth) - typo correction (#36701) Fix wording inconsistency between countries and colors example --- apps/docs/content/guides/auth/server-side/sveltekit.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/docs/content/guides/auth/server-side/sveltekit.mdx b/apps/docs/content/guides/auth/server-side/sveltekit.mdx index 845cd0aebbcdf..f8b0719df4b2c 100644 --- a/apps/docs/content/guides/auth/server-side/sveltekit.mdx +++ b/apps/docs/content/guides/auth/server-side/sveltekit.mdx @@ -321,7 +321,7 @@ Set up a listener for Auth events on the client, to handle session refreshes and -Create your first page. This example page calls Supabase from the server to get a list of countries from the database. +Create your first page. This example page calls Supabase from the server to get a list of colors from the database. This is an example of a public page that uses publicly readable data. From a7d5ed0957da5d80738e4f8d04d06e203cc17021 Mon Sep 17 00:00:00 2001 From: Han Qiao Date: Fri, 27 Jun 2025 00:44:18 +0800 Subject: [PATCH 3/3] docs: simplify declarative schema usage example (#36698) --- .../declarative-database-schemas.mdx | 30 +++---------------- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/apps/docs/content/guides/local-development/declarative-database-schemas.mdx b/apps/docs/content/guides/local-development/declarative-database-schemas.mdx index 54076678dce51..bc71dc34edf99 100644 --- a/apps/docs/content/guides/local-development/declarative-database-schemas.mdx +++ b/apps/docs/content/guides/local-development/declarative-database-schemas.mdx @@ -98,28 +98,6 @@ supabase migration up - - Before updating your schema files, stop the local development environment. - - - - -<$CodeTabs> - -```bash name=Terminal -supabase stop -``` - - - - - - - - - - - Edit `supabase/schemas/employees.sql` file to add a new column to `employees` table. @@ -151,7 +129,7 @@ Some entities like views and enums expect columns to be declared in a specific o - + Diff existing migrations against your declared schema. @@ -173,7 +151,7 @@ supabase db diff -f add_age - + Verify that the generated migration contain a single incremental change. @@ -194,7 +172,7 @@ alter table "public"."employees" add column "age" smallint not null; - + Start the database locally and apply the pending migration. @@ -204,7 +182,7 @@ alter table "public"."employees" add column "age" smallint not null; <$CodeTabs> ```bash name=Terminal -supabase start && supabase migration up +supabase migration up ```