I want to retrieve row count in Supabase.
I am guessing it would be something like this:
const { data, error } = await supabase .from('cities') .select('name', 'COUNT(*)')
Is this possible with Supabase?
As a workaround, you could write a standard Postgres stored procedure or function that returns the count then call that via the SB client.
https://supabase.io/docs/client/rpc
1.4m articles
1.4m replys
5 comments
57.0k users