node.js - Mongoose: find with multi condition -


i studying node.js. have problem. have created new model - "adventuremodel". , want search data multi condition. code following:

adventuremodel.find({ $and : [{ name : new regexp(name, 'i'), description : new regexp(description, 'i'), tags : { $in : tags } }]}, function (err, adventures) {});

but not works fine. how can find multi condition @ same time?

please me.

regards.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -