[{
"_id": "61014061f992e20021e7ccaf",
"email": "test@gmail.com",
"username": "test",
"password": "$2a$12$y3ujbKJ4MugN6EvHNqNA.uTMSCejpTzwMT4jN8Imd5beTqlF6M4eO",
"__v": 0
}, {
"_id": "61013f817e9fd3ffdf9c150a",
"email": "test1@gmail.com",
"username": "test1",
"password": "$2a$12$0TNS6fueOBpUtzWhcHSecOlu3./uvK1kjcaznwCLuRVOTgoHpU1Um",
"__v": 0
}
]
const cursor = db
.collection('users')
.find({ email: 'test1@gmail.com' })
.project({ password: 0, __v: 0 }); // 0 означает исключить
// или через модель
someModel.find({}, { password: 0, __v: 0 }).then(console.log);