mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
docs(APIs guide): Fix method and table names
This commit is contained in:
1 parent
0351d40252
commit
581024aaab
1 file changed
+4
-4
@@ -339,13 +339,13 @@ values={[
|
||||
<TabItem value="SQL">
|
||||
|
||||
```sql
|
||||
alter publication supabase_realtime add table products;
|
||||
alter publication supabase_realtime add table todos;
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
Now we can listen to any new data that is inserted into the `todo` table:
|
||||
Now we can listen to any new data that is inserted into the `todos` table:
|
||||
|
||||
<Tabs
|
||||
defaultValue="Javascript"
|
||||
@@ -367,7 +367,7 @@ const handleInserts = (payload) => {
|
||||
// Listen to unserts
|
||||
const { data: todos, error } = await supabase
|
||||
.from('todos')
|
||||
.in('INSERT', handleUpdates)
|
||||
.on('INSERT', handleUpdates)
|
||||
.subscribe()
|
||||
```
|
||||
|
||||
@@ -432,4 +432,4 @@ select usename,useconfig from pg_shadow where usename = 'authenticator' ;
|
||||
The expected value for `useconfig` should be:
|
||||
```
|
||||
["session_preload_libraries=supautils, safeupdate"]
|
||||
```
|
||||
```
|
||||
Reference in new issue
Block a user