#76 Advance filtering | Using MongoDB with Express| A Complete NODE JS Course

preview_player
Показать описание
In this lecture we are going to implement advanced filtering for our express API. In the previous lecture, we filtered results based on equality. But now we are going to filter results based on comparison like greater than, greater than or equal, less than, less than or equal etc.
Рекомендации по теме
Комментарии
Автор

Excellent job explaining how to use Mongoose for filtering. I have been going about this all wrong in my attempts to do this. Being able to pass req.query to the find functions is a game changer for me. Thanks for the great series of videos.

chrisstromberg
Автор

why cant we just use duration[$gte] = 118 in postman directly it gives the same result. Is it compulsory to use .replace. why cant we just pass [$gtl] in the first place.

bishwashkumarsah
Автор

How many lectures will this course be?

alihosaino
Автор

my question why we use filter in backend we can do it in frontend ??

programmer
Автор

Can you do tutorials about spring boot please

logtariyoussef
Автор

Can you please share the code for the reference.

vivasviyan
Автор

I'd not recommend using mongodb comparison operators (such as gte, gt, lte, lt) in the url, better to use something making more sense like "rating_from", "rating_to". Define what can be filtered and how instead of giving absolute flexibility letting the user choose any field and any comparison

DarkzarichV