But I just get the follwing error: "Could not find a relationship between 'location' and 'facility_category' in the schema cache", even though the query works fine in the SQL editor.
Also, I'd like to make it distinct, but my understanding is that it is not possible via the API?
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.