Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to add multiple qurery in mongoose find method

app.get('/user',function(req, res) {

 User.find({region: "NA",sector:"Some Sector"}, function(err, user) 
 {
    if (err)
    {
        res.send(err);
    }
    console.log(user);
    res.json(user);

 });
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #multiple #qurery #mongoose #find #method
ADD COMMENT
Topic
Name
4+3 =