From 68b6bbaa15b392a4094a449c9a67b2930e8c5776 Mon Sep 17 00:00:00 2001 From: Inian Parameshwaran Date: Mon, 8 Mar 2021 13:03:14 +0530 Subject: [PATCH 1/3] fix: limit docs with embedded resources --- web/spec/supabase.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/spec/supabase.yml b/web/spec/supabase.yml index f693209fe58..c088147b612 100644 --- a/web/spec/supabase.yml +++ b/web/spec/supabase.yml @@ -909,7 +909,7 @@ pages: .from('cities') .select('name, cities(name)') .eq('name', 'United States') - .limit(1, 'cities') + .limit(1, { foreignTable: 'cities' }) ``` py: | ```py From 4df1b21f484747f3347a91df7fe20906549987f9 Mon Sep 17 00:00:00 2001 From: "J. Gonzalez" Date: Fri, 12 Mar 2021 10:14:20 +0100 Subject: [PATCH 2/3] docs: Update auth.mdx (#861) --- web/docs/guides/auth.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/docs/guides/auth.mdx b/web/docs/guides/auth.mdx index 9b5572a9fca..9c7017f8053 100644 --- a/web/docs/guides/auth.mdx +++ b/web/docs/guides/auth.mdx @@ -122,7 +122,7 @@ These should never be used in the browser or exposed to customers, but they are ### Create a `public.users` table. Even though Supabase provides an `auth.users` table, it is helpful to also create a users table in the `public` schema, which uses the same UID Primary Key as the `auth.users`. -For security purposes, the `auth` schema is not exposed on the auto-generated API. Created a `public.users` table allows you to interact via the Supabase client - +For security purposes, the `auth` schema is not exposed on the auto-generated API. Creating a `public.users` table allows you to interact via the Supabase client - especially useful for cross-table queries. Pro tip: if you want to add a row to your `public.users` table every time a user signs up, you can use triggers. For example: From 26894978a52d19ef16c6bb73f580e71b9385e940 Mon Sep 17 00:00:00 2001 From: Inian Parameshwaran Date: Fri, 12 Mar 2021 14:55:49 +0530 Subject: [PATCH 3/3] fix: Update limit docs with embedding --- web/spec/supabase.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/spec/supabase.yml b/web/spec/supabase.yml index c088147b612..491d8c80fcc 100644 --- a/web/spec/supabase.yml +++ b/web/spec/supabase.yml @@ -906,7 +906,7 @@ pages: js: | ```js const { data, error } = await supabase - .from('cities') + .from('countries') .select('name, cities(name)') .eq('name', 'United States') .limit(1, { foreignTable: 'cities' })