Skip to content

Commit

Permalink
Merge pull request #11181 from ivalduan/ivalduan-patch-1
Browse files Browse the repository at this point in the history
fix(index.d.ts): deep populate
  • Loading branch information
vkarpov15 committed Jan 6, 2022
2 parents a8a615c + 1e48fd4 commit f5fde77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@ declare module 'mongoose' {
/** optional query options like sort, limit, etc */
options?: any;
/** deep populate */
populate?: PopulateOptions | Array<PopulateOptions>;
populate?: string | PopulateOptions | (string | PopulateOptions)[];
/**
* If true Mongoose will always set `path` to an array, if false Mongoose will
* always set `path` to a document. Inferred from schema by default.
Expand Down

0 comments on commit f5fde77

Please sign in to comment.