criteria
)Description | Accepted Data Types | Required ? | |
---|---|---|---|
1 | Criteria Object | {} |
Yes |
var myQuery = User.find();
myQuery.where({'name':{startsWith:'W'}});
myQuery.exec(function callBack(err,results){
console.log(results)
});
The .find() method returns a chainable object if you don't supply a callback. This method can be chained to .find() to further filter your results.