Can this query be written in Supabase?
I'm developing an app for organizing team sports among friends, have it mostly working, but there's a query I need for displaying “open” games available to join (created by me, or by one of my friends). Specifically:
I want to
...But cannot see how to do it using the Supabase API.
Peaking into two foreign tables
If not, maybe I could achieve the above with an RLS policy?! Any tips or suggestions are very appreciated.
I want to
select- games organized by me (I am the organizer)
- games organized by one of my friends (open to friends)
- games I'm playing in (joined)
...But cannot see how to do it using the Supabase API.
Peaking into two foreign tables
games → players and games → friends with where clauses, Is it even possilbe?If not, maybe I could achieve the above with an RLS policy?! Any tips or suggestions are very appreciated.