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
I am use this with async await
async (req, res) => { try { await User.findById(req.user,'name email',(err, user) => { if(err || !user){ return res.status(404) } else { return res.status(200).json({ user, }); } }); } catch (error) { console.log(error); }