Answer the question
In order to leave comments, you need to log in
How to get value from MongoDB nested array?
result.images = await Titles.findOne({
enName: req.params.titleName,
content: {
$elemMatch: {
tome: +req.query.tome,
chapters: {
$elemMatch: {
chapter: +req.query.chapter
}
}
}
}
}).lean();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question