Usually, when I have to make a GET request using NodeJS and MongoDB, I do a separate search for every field.
For Example:
localhost:3000/movie/:name/:author - GET
As I would expect to get a movie, desired name, and author, everything will be working fine.
But what if I want to make a request query like this:
localhost:3000/movies/filters[‘movies’]=USA&fields=id,name,author - GET
Is that possible in NodeJS and MongoDB using the SAME query?
How can it be done?
Thanks so much!