I have a NodeJS application with Mongoose ODM(Mongoose 3.3.1). I want to retrieve all fields except 1 from my collection.For Example: I have a collection Pr
Model.findOne({ _id: Your Id}, { password: 0, name: 0 }, function(err, user){ // put your code });
this code worked in my project. Thanks!! have a nice day.