Skip to content

Commit

Permalink
Merge pull request #10598 from thiagokisaki/patch-8
Browse files Browse the repository at this point in the history
fix(index.d.ts): remove `strictQuery` option
  • Loading branch information
vkarpov15 committed Aug 24, 2021
2 parents fb717b0 + db292e0 commit 877fd59
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions index.d.ts
Expand Up @@ -237,12 +237,6 @@ declare module 'mongoose' {
/** true by default, may be `false`, `true`, or `'throw'`. Sets the default strict mode for schemas. */
strict?: boolean | 'throw';

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

/**
* `{ transform: true, flattenDecimals: true }` by default. Overwrites default objects to
* `toJSON()`, for determining how Mongoose documents get serialized by `JSON.stringify()`
Expand Down Expand Up @@ -1465,11 +1459,6 @@ declare module 'mongoose' {
* schema option to the same shard key and we'll be all set.
*/
shardKey?: Record<string, unknown>;
/**
* For backwards compatibility, the strict option does not apply to the filter parameter for queries.
* Mongoose has a separate strictQuery option to toggle strict mode for the filter parameter to queries.
*/
strictQuery?: boolean | 'throw';
/**
* The strict option, (enabled by default), ensures that values passed to our model constructor that were not
* specified in our schema do not get saved to the db.
Expand Down

0 comments on commit 877fd59

Please sign in to comment.