mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-30 18:43:21 +08:00
Merge pull request #19903 from ksaifullah/patch-1
Missing options for @types/mongoose
This commit is contained in:
9
types/mongoose/index.d.ts
vendored
9
types/mongoose/index.d.ts
vendored
@@ -2660,6 +2660,15 @@ declare module "mongoose" {
|
||||
sort?: Object;
|
||||
/** sets the document fields to return */
|
||||
select?: Object;
|
||||
/** if true, passes the raw result from the MongoDB driver as the third callback parameter */
|
||||
passRawResult?: boolean;
|
||||
/** overwrites the schema's strict mode option for this update */
|
||||
strict?: boolean;
|
||||
/**
|
||||
* if true, run all setters defined on the associated model's schema for all fields
|
||||
* defined in the query and the update.
|
||||
*/
|
||||
runSettersOnQuery?: boolean;
|
||||
}
|
||||
|
||||
interface ModelFindOneAndUpdateOptions extends ModelFindByIdAndUpdateOptions {
|
||||
|
||||
Reference in New Issue
Block a user