How do I 'Group by' in Javascript? - Supabase