【发布时间】:2020-07-14 18:07:21
【问题描述】:
考虑下面的代码:
const aux = await Fasta.find({}, "healthyTissue")
.limit(1)
.populate({
//---------------------first level (healthy or tumor fasta file) ----------------
path: "healthyTissue",
model: "Hidden",
options: {
limit: 2
},
//--------------------- second level (hidden documents) ----------------
populate: {
path: "children",
options: {
limit: 2
},
model: "FastaElement"
}
});
这是输出:
问题:只填充了第一个孩子。我仔细检查了数据库,它不是空的。
我觉得我看到过这个问题,但我不记得在哪里。 谁能刷新我的记忆?
【问题讨论】:
标签: mongoose mongoose-populate