Mongoose findone exclut le champ perticulaire

//Return the User document without having password field
User.findOne({_id: userId}).select("-password")

//Incase wants to add excluded field
User.findOne({_id: userId}).select("+password")
Jaimin Patel