Mongoose Aktualizacja tablica Push Multiple
Kitten.update(
{ name: 'fluffy'},
{
$push: {
values: {
$each: [2, 3]
}
}
}
)
.then(result => {
console.log(result)
})
.catch(err => {
console.error(err)
})
Krushn