.....................
if (req.body.search) {
findObject.title = {
$regex: "(" + req.body.search + ")" // <- All the rules. I request the regular season and nothing of course is not
};
}
Model.paginate(findObject, {
page: page,
limit: limit
sort: {createdate: 1},
}, function (err, result) {
if (err) {
............................
Find more questions by tags MongoDB
I'll give a hint - everything! - Urban66 commented on July 9th 19 at 11:26