Skip to content

Commit 10a4c6c

Browse files
committed
fix(index.d.ts): add strictQuery global option
Fix Automattic#10933
1 parent c4a8b4c commit 10a4c6c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

index.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,12 @@ declare module 'mongoose' {
244244
/** true by default, may be `false`, `true`, or `'throw'`. Sets the default strict mode for schemas. */
245245
strict?: boolean | 'throw';
246246

247+
/**
248+
* false by default, may be `false`, `true`, or `'throw'`. Sets the default
249+
* [strictQuery](https://mongoosejs.com/docs/guide.html#strictQuery) mode for schemas.
250+
*/
251+
strictQuery?: boolean | 'throw';
252+
247253
/**
248254
* `{ transform: true, flattenDecimals: true }` by default. Overwrites default objects to
249255
* `toJSON()`, for determining how Mongoose documents get serialized by `JSON.stringify()`

0 commit comments

Comments
 (0)