我有像这样的猫鼬文件:
{
_id: ObjectId("56a5ddb76c9248f30746a425"),
people: [
null,
null,
null,
null,
ObjectId("56a5dd816c9248f30746a420"),
null,
null,
ObjectId("56a5ddae6c9248f30746a424"),
ObjectId("56a5dd6c6c9248f30746a41e"),
ObjectId("56a4d6652cc5cd631b6f3255"),
ObjectId("56a5ddb76c9248f30746a425"),
null
]
}
当我执行doc.populate("people")
时,people数组只包含五个元素,但我需要保留这些空值。我该怎么做?