Skip to content

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

update from,select ordering on readExample

Pham Hieu8edd7ef5b156
diff --git a/web/src/pages/index.js b/web/src/pages/index.js
index 84cd8138a00..01e411625c0 100755
--- a/web/src/pages/index.js
+++ b/web/src/pages/index.js
@@ -50,11 +50,11 @@ const supabase = createClient(supabaseUrl, supabaseKey)
// Get public rooms and their messages
const publicRooms = await supabase
.from('rooms')
- .eq('public', true)
.select(\`
name,
messages ( text )
\`)
+ .eq('public', true)
`.trim()
const createExample = `
import { createClient } from '@supabase/supabase-js'