How do I write a "group by" query in supabase-js?
In traditional SQL it would look like this:
SELECT COUNT(*), PLAYER FROM GAMES GROUP BY PLAYER
Using React and supabase-js, my code so far is like this:
const { data, error } = await supabase
.from('games')
.select('count(*), player')
// I need something like this: .groupBy('player')
How can I do group by?