mongoose find nested object in array in mongoose example
Example 1: mongoose select nested
var fields = { 'properties.OBJECTID': 1, 'properties.TIMESTAMP': 1 };
var query = Feature.find({id: 1}).select(fields);
Example 2: mongoose nested object without id
var subSchema = mongoose.Schema({
//your subschema content
},{ _id : false });
Example 3: mongoose find by nested property
System.findOne({ 'nodes.main.Alpha': 23000}, function(err, system){
if(err){console.log(err);}
else{console.log(system);}
});