var admin = await User.findOne({role: 1}); let newPassword = await bcrypt.hash(req.body.newPassword, 10); admin.password = newPassword; admin.save();