I use the following mongoose query in a MEAN-environment to find and output a particular author and his corresponding books.
Author .findOne({personcode: co
The second parameter of populate is a field selection string, so you can do this as:
Author .findOne({personcode: code}) .select('-_id -__v') .populate('bookids', '-_id -__v') .exec(function (err, data) { //foo });
Note that you should combine your field selections into a single string.