.populate('user' , '-password')http://mongoosejs.com/docs/populate.html
JohnnyHK的使用Schema选项的答案可能是解决此问题的方法。
另请注意,
query.exclude()仅存在于2.x分支中。

.populate('user' , '-password')http://mongoosejs.com/docs/populate.html
JohnnyHK的使用Schema选项的答案可能是解决此问题的方法。
另请注意,
query.exclude()仅存在于2.x分支中。