Understanding how to create a join in JavaScript - Supabase