猫鼬新版本是否弃用了 exexPopulate() 方法?

Is exexPopulate() method is deprecated from the mongoose new version?

main()

    const main = async () =>{
    const task = await Task.findById('614ac31e103d9c5329d38686')
    await task.populate('owner').execPopulate()
    console.log(task.owner)
}

execPopulate() 不是函数

来自 https://mongoosejs.com/docs/migrating_to_6.html#removed-execpopulate

的更新日志

该行应替换为

await task.populate('owner')