MCPcopy
hub / github.com/Automattic/mongoose / documentDepopulate

Function documentDepopulate

test/types/populate.test.ts:87–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85})();
86
87async 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
95async function testPathsParam() {
96 const story = await Story.findOne().populate<{ author: IPerson }>('author').orFail();

Callers

nothing calls this directly

Calls 2

populateMethod · 0.80
findOneMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…