Skip to content

Commit

Permalink
fix(index.d.ts): add strictPopulate to MongooseOptions
Browse files Browse the repository at this point in the history
Fix #11276
  • Loading branch information
vkarpov15 committed Feb 3, 2022
1 parent 6fd0160 commit 62fa19a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ declare module 'mongoose' {
/** true by default, may be `false`, `true`, or `'throw'`. Sets the default strict mode for schemas. */
strict?: boolean | 'throw';

/** true by default. set to `false` to allow populating paths that aren't in the schema */
strictPopulate?: boolean;

/**
* false by default, may be `false`, `true`, or `'throw'`. Sets the default
* [strictQuery](https://mongoosejs.com/docs/guide.html#strictQuery) mode for schemas.
Expand Down

0 comments on commit 62fa19a

Please sign in to comment.