Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs(APIs guide): Fix method and table names

Nokome Bentley581024aaabbb
diff --git a/web/docs/guides/api.mdx b/web/docs/guides/api.mdx
index 256da1d3023..a4c231288c3 100644
--- a/web/docs/guides/api.mdx
+++ b/web/docs/guides/api.mdx
@@ -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"]
-```
\ No newline at end of file
+```