Skip to content

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

docs: Updates the subscription example

Paul Copplestone12c80d5c5c81
diff --git a/web/docs/client/subscribe.mdx b/web/docs/client/subscribe.mdx
index c02561c2ed3..74045d9443b 100644
--- a/web/docs/client/subscribe.mdx
+++ b/web/docs/client/subscribe.mdx
@@ -301,7 +301,7 @@ const mySubscription = supabase
### Listening to row level changes
-You can listen to individual rows using the format `{table}:{col}.eq.{val}` - where `{col}` is the column name, and `{val}` is the value which you want to match.
+You can listen to individual rows using the format `{table}:{col}=eq.{val}` - where `{col}` is the column name, and `{val}` is the value which you want to match.
<Tabs
defaultValue="js"
@@ -312,7 +312,7 @@ You can listen to individual rows using the format `{table}:{col}.eq.{val}` - wh
```js
const mySubscription = supabase
- .from('countries:id.eq.200')
+ .from('countries:id=eq.200')
.on('UPDATE', handleRecordUpdated)
.subscribe()
```
diff --git a/web/spec/supabase.yml b/web/spec/supabase.yml
index 4b06beb457b..3c7fb439c00 100644
--- a/web/spec/supabase.yml
+++ b/web/spec/supabase.yml
@@ -701,11 +701,11 @@ pages:
# Not yet implemented
```
- name: Listening to row level changes
- description: You can listen to individual rows using the format `{table}:{col}.eq.{val}` - where `{col}` is the column name, and `{val}` is the value which you want to match.
+ description: You can listen to individual rows using the format `{table}:{col}=eq.{val}` - where `{col}` is the column name, and `{val}` is the value which you want to match.
js: |
```js
const mySubscription = supabase
- .from('countries:id.eq.200')
+ .from('countries:id=eq.200')
.on('UPDATE', handleRecordUpdated)
.subscribe()
```