.select in create mongoose code example
Example 1: return only specific attributes when making query mongoose
//query with mongoose
var query = dbSchemas.SomeValue.find({}).select('name');
Example 2: mongoose response to object
MyModel.findOne().lean().exec(function(err, doc) {
doc.addedProperty = 'foobar';
res.json(doc);
});