Get postal code start by XX

Hello ! I’m trying to do a GET request to get the zip codes starting with 49.
I try with _containss=49 but however i also get the codes with 54900 (for example)

https://myStrapi.fr/solutions?code_postal_containss=49

How to retrieve only codes starting with 49 ? :slight_smile:

While quite an ugly solution as we don’t have a “starts with” query parameter you could use:
https://myStrapi.fr/solutions?code_postal_gte=49000&code_postal_lt=50000 So long as the postal code is an integer field.

While this is ugly the alternative would be to customize the controller and add in some custom filter logic, likely utilizing the custom queries.