I am using the mongodb native driver for node.js and can\'t get to work the field selection. What I want to do is to limit fields to name. I do not want the \'last\' in the outp
Omit the array:
db.collection("test").find({},{'name':true,'last':false}).toArray(function(err, results) { console.dir(results); });