var MongoClient = require('mongodb').MongoClient;
var url = "mongodb://localhost:27017/mydb";

MongoClient.connect(url, function(err, db) {
  if (err) throw err;
  //Exclude "address" field in the result:
  db.collection("customers").find({}, { projection: { address: 0 } }).toArray(function(err, result) {
    if (err) throw err;
    console.log(result);
    db.close();
  });
});

              
[
{ _id: 594a51721daccb087032309e, name: 'John' },
{ _id: 594a51721daccb087032309f, name: 'Peter' },
{ _id: 594a51721daccb08703230a0, name: 'Amy' },
{ _id: 594a51721daccb08703230a1, name: 'Hannah' },
{ _id: 594a51721daccb08703230a2, name: 'Michael' },
{ _id: 594a51721daccb08703230a3, name: 'Sandy' },
{ _id: 594a51721daccb08703230a4, name: 'Betty' },
{ _id: 594a51721daccb08703230a5, name: 'Richard' },
{ _id: 594a51721daccb08703230a6, name: 'Susan' },
{ _id: 594a51721daccb08703230a7, name: 'Vicky' },
{ _id: 594a51721daccb08703230a8, name: 'Ben' },
{ _id: 594a51721daccb08703230a9, name: 'William' },
{ _id: 594a51721daccb08703230aa, name: 'Chuck' },
{ _id: 594a51721daccb08703230ab, name: 'Viola' }
]