Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(index.d.ts): remove strictQuery option #10598

Merged
merged 1 commit into from Aug 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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