return only specific attributes when making query mongoose

JavaScript
//query with mongoose
var query = dbSchemas.SomeValue.find({}).select('name');
Source

Also in JavaScript: