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.
@programmer905110 ай бұрын
my question why we use filter in backend we can do it in frontend ??
@sonofagah24162 ай бұрын
helps prevent exposing sensitive information to the client and you can control what data is sent to the client also for enhancing security.
@bishwashkumarsah1715 ай бұрын
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.
@hassannouri97964 ай бұрын
❤❤❤
@programmer905110 ай бұрын
my question why we use filter in backend we can do it in frontend ??
@rahulsiddhardh37019 ай бұрын
Because the data you need to send over the network reduces, which means, less the data more the speed of transmission. You do it on the server as usally servers have high computational powers compared most of the user machiness. So it is only logical to send the data that is required by the user and reduce the computations on the front-end.
@alihosaino7 Жыл бұрын
How many lectures will this course be?
@procademy Жыл бұрын
Still a lot left to cover.... around 50 more videos
@muhangielioda Жыл бұрын
why arent you using regex..?
@logtariyoussef982 Жыл бұрын
Can you do tutorials about spring boot please
@vivasviyan Жыл бұрын
Can you please share the code for the reference.
@MassinDev10 ай бұрын
adcac
@DarkzarichV24 ай бұрын
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