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
Post a Comment