Merge branch 'master' into docs/reference_docs_sidebar

This commit is contained in:
Paul Copplestone committed 2021-03-12 22:55:22 +08:00
commit 2d238da4f1
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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:
+2 -2
View File
@@ -955,10 +955,10 @@ pages:
js: |
```js
const { data, error } = await supabase
.from('cities')
.from('countries')
.select('name, cities(name)')
.eq('name', 'United States')
.limit(1, 'cities')
.limit(1, { foreignTable: 'cities' })
```
py: |
```py