【发布时间】:2019-04-14 01:57:20
【问题描述】:
您好,我想通过查询排除一些字段。我正在使用 nodejs
public async getDoc() {
return new Promise((resolve, reject) => {
this.database.collection('users').find({email: "value3"}, {password: 0}).toArray((err, result) => {
if(err) {
reject(err)
}
resolve(result);
});
})
}
但在结果集中我不断收到密码字段..
【问题讨论】: