Mongoose不返回对象数组中的所有字段

Mongoose不返回对象数组中的所有字段,mongoose,Mongoose,我正试图从我的数据库中获取章节列表。但是,并不是我的视频模型中章节数组中的所有字段都返回。当我查询数据库并打印视频的内容时,不会返回章节开始时间和结束时间。我已使用Compass确认我查询的视频章节确实存在start\u time和end\u time //video.model.js const chapterSchema=新的mongoose.Schema({ 开始时间:{type:Number,required:true}, 结束时间:{type:Number,required:true}

我正试图从我的数据库中获取章节列表。但是,并不是我的视频模型中章节数组中的所有字段都返回。当我查询数据库并打印
视频的内容时,不会返回章节
开始时间
结束时间
。我已使用Compass确认我查询的视频章节确实存在
start\u time
end\u time

//video.model.js
const chapterSchema=新的mongoose.Schema({
开始时间:{type:Number,required:true},
结束时间:{type:Number,required:true},
标题:{type:String,默认值:null},
},{u id:false})
const videoSchema=新的mongoose.Schema({
上载程序:{type:ObjectId,ref:'uploader',默认值:null},
持续时间:{type:Number,默认值:null},
章节:[{type:chapterSchema}],
});
导出默认mongoose.model('Video',videoSchema);
//route.js
const video=(wait video.findOne({
提取器:请求参数提取器,
id:req.params.id
},'-\u id上传器持续时间章节')
.populate('uploader'))
.exec()
)?.toJSON();
console.dir(视频章节);
/*
{标题:'引言'},
{标题:'确认'},
{标题:'第1章-章节标题'},
...
这些对象中的每一个都应该具有开始时间和结束时间属性
*/
如何让mongoose返回数组章节对象中的所有字段