assume that i have a BlogPost model with zero-to-many embedded Comment documents. can i query for and have MongoDB return only Comme
The mongodb javascript shell is documented at http://docs.mongodb.org/manual/reference/method/
If you want to get back only specific fields of an object, you can use
db.collection.find( { }, {fieldName:true});
If, on the other hand, you are looking for objects which contain a specific field, you can sue
db.collection.find( { fieldName : { $exists : true } } );