Merge pull request #29809 from thomasraydeniscool/master

[mongoose] path in depopulate is not required
This commit is contained in:
Daniel Rosenwasser
2018-10-30 12:48:28 -07:00
committed by GitHub
+1 -1
View File
@@ -1121,7 +1121,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.