I have an array of stages
in my MentorProfile
document and I want to concatenate lessonsWithComments
array with stages
. Is this even possible without having to loop through the lessonsWithComments
and then querying for each iteration with updateMany
MentorProfile.updateMany(
{},
{
$push: {
stages: {
lessonsWithComments
}
}
}
).then((update) => res.json(update));