what i want, is to only return the _id and data in meta (not my field, but since mongoose has this prime example): mongoose embedd documents doc
so, i'm not looking for any _id in particular, i'm looking for records with meta.votes.length > 0 or meta.fans.length > 0. currently i do:
Model.find({}, ['_id','meta'], function (err, data) {
callback(null, data);
});
i get records with no /data/. i guess an alternative to not finding these sets would be a way to filter them out?
EDIT: i have temporarily resolved my issue with:
use : { type: Boolean, default: 1 },
though this might be a feature (showing and hiding results - old data for instance), i don't consider this a /solution/.