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={[ ```sql -alter publication supabase_realtime add table products; +alter publication supabase_realtime add table todos; ``` -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: { // 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 +```