How could I write the following query in JS?
I'm having difficulties translating this query:
So far I have something likke this:
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?
So far I have something likke this:
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?