📅  最后修改于: 2022-03-11 15:04:11.708000             🧑  作者: Mango
//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")