Model find mongoose choose field code example
Example 1: return only specific attributes when making query mongoose
//query with mongoose
var query = dbSchemas.SomeValue.find({}).select('name');
Example 2: callback mongoose get value from document
var query = Model.find({});
query.where('field', 5);
query.limit(5);
query.skip(100);
query.exec(function (err, docs) {
// called when the `query.complete` or `query.error` are called
// internally
});