I\'m trying to get the min and max values based on queries. I\'m using the following logic,
if(req.query.max_price && req.query.max_price != \'\'