mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 09:41:45 +00:00
path in depopulate is not required
You can call depopulate with no parameters and it will depopulate all populated fields on the document. https://github.com/Automattic/mongoose/issues/6075
This commit is contained in:
Vendored
+1
-1
@@ -1119,7 +1119,7 @@ declare module "mongoose" {
|
||||
* Takes a populated field and returns it to its unpopulated state.
|
||||
* If the path was not populated, this is a no-op.
|
||||
*/
|
||||
depopulate(path: string): this;
|
||||
depopulate(path?: string): this;
|
||||
|
||||
/**
|
||||
* Returns true if the Document stores the same data as doc.
|
||||
|
||||
Reference in New Issue
Block a user