I'm developing an app with mongoose to access MongoDB.
And what I'm trying to achieve is to make a query and discar some documents by id.
User.find({})
.where('price').lt(upperLimit)
....
.exec(function(err, users) {
//
});
The point is I want to discard some users that I know before doing the query. Any ideas?. I don't want to post-process users collections and filter.
Thanks!