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

Viewed 295
main()

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

execPopulate() is not a function

1 Answers
Related