In my backend I have a list of available phone numbers: /api/phonenumbers
. And I have a model for that: App.Phonenumber
. I can get all my phone numbers with App.Phonenumber.find();
Now I would like to filter the list of phonenumbers, and get only those in a given country / city. The backend is able to perform this filtering by receiving a /api/phonenumbers?country=DE&city=Berlin
query string.
- How can I extend my
Phonenumber
model to be able to pass these query string parameters? - How can I perform a
find
using those query parameters?