#API Request

4 messages · Page 1 of 1 (latest)

velvet oar
#

I have my collection province.ts, what should I configure so that when I make the request the API returns me all the provinces related to a department, the ID of the department will be sent from the Frontend.

remote wolf
#

Depending on if you're using gql/rest or the local API, you basically want to add a where to filter by department in your query for provinces

#

This page has information for all sorts of querying, filtering and sorting for all 3 APIs