_
for(let m = 0; m < children.length; m++){
if (event.code = keys[m] ) children[m].style.background = 'yellow';
}
})
срабатывает сразу на все кнопки
Size: a a a
_
IK
_
PU
R
async find() {
const data = await this.userModel.find({})
.populate(path: 'result')
.find({result.date: { $lte: new Date() } }}).exec()
return data;R
MK
S
async find() {
const data = await this.userModel.find({})
.populate(path: 'result')
.find({result.date: { $lte: new Date() } }}).exec()
return data;R
R
async find() {
const data = await this.userModel.find({})
.populate(path: 'result')
.find({result.date: { $lte: new Date() } }}).exec()
return data;MK
R
populate возвращает массив, а там обьекты. То есть [{ }, { }, { }, { }] может есть какой то forEach чтобы на каждой итерации получать обьект. А там уже делать .find (фильтр)? Или я ошибаюсьMK
populate возвращает массив, а там обьекты. То есть [{ }, { }, { }, { }] может есть какой то forEach чтобы на каждой итерации получать обьект. А там уже делать .find (фильтр)? Или я ошибаюсьR
MK
R
populate возвращает массив, а там обьекты. То есть [{ }, { }, { }, { }] может есть какой то forEach чтобы на каждой итерации получать обьект. А там уже делать .find (фильтр)? Или я ошибаюсьMK
R
find ({}).populate () то что я получу в результате? Массив обьектов?MK
find ({}).populate () то что я получу в результате? Массив обьектов?R
.populate('user', {
select: 'lastLoginDate',
match: {lastLoginDate: {$lte: new Date()}} }).exec()(node:5855) UnhandledPromiseRejectionWarning: MongoError: Unsupported projection option: match: { lastLoginDate: { $lte: new Date(1589629705160) } }