()
| 85 | })(); |
| 86 | |
| 87 | async function documentDepopulate() { |
| 88 | const story = await Story.findOne().populate('author').orFail(); |
| 89 | |
| 90 | story.depopulate('author'); |
| 91 | story.depopulate(['author']); |
| 92 | story.depopulate(); |
| 93 | } |
| 94 | |
| 95 | async function testPathsParam() { |
| 96 | const story = await Story.findOne().populate<{ author: IPerson }>('author').orFail(); |