mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
add missing 'useFindAndModify' option (#45799)
add missing 'useFindAndModify' option to 'QueryFindOneAndUpdateOptions' of 'types/mongoose'
This commit is contained in:
parent
da860cab5d
commit
3f1836cba5
4
types/mongoose/index.d.ts
vendored
4
types/mongoose/index.d.ts
vendored
@ -2577,6 +2577,10 @@ declare module "mongoose" {
|
||||
* Does nothing if schema-level timestamps are not set.
|
||||
*/
|
||||
timestamps?:boolean;
|
||||
/**
|
||||
* True by default. Set to false to make findOneAndUpdate() and findOneAndRemove() use native findOneAndUpdate() rather than findAndModify().
|
||||
*/
|
||||
useFindAndModify?:boolean;
|
||||
}
|
||||
|
||||
interface QueryUpdateOptions extends ModelUpdateOptions {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user