I am trying to use the select operator in mongoose to select certain fields for the following object:
{
\"_id\" : ObjectId(\"5249bb97a5de48bda3000003\"),
You can use the same dot notation style in the select
object with Mongoose as you do in your find
example:
var fields = { 'properties.OBJECTID': 1, 'properties.TIMESTAMP': 1 };
var query = Feature.find({id: 1}).select(fields);
You can also use a Mongoose style selection string:
var query = Feature.find({id: 1})
.select('properties.OBJECTID properties.TIMESTAMP');