mongoose select fields to return code example
Example: return only specific attributes when making query mongoose
//query with mongoose
var query = dbSchemas.SomeValue.find({}).select('name');
//query with mongoose
var query = dbSchemas.SomeValue.find({}).select('name');