mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-02 00:00:04 +00:00
mongoose: add Query.maxTimeMS() (#35677)
This commit is contained in:
committed by
Ryan Cavanaugh
parent
be367b428a
commit
bc9a135f93
5
types/mongoose/index.d.ts
vendored
5
types/mongoose/index.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for Mongoose 5.5
|
||||
// Type definitions for Mongoose 5.5.1
|
||||
// Project: http://mongoosejs.com/
|
||||
// Definitions by: horiuchi <https://github.com/horiuchi>
|
||||
// lukasz-zak <https://github.com/lukasz-zak>
|
||||
@@ -1968,6 +1968,9 @@ declare module "mongoose" {
|
||||
/** Specifies the maxScan option. Cannot be used with distinct() */
|
||||
maxScan(val: number): this;
|
||||
|
||||
/** Specifies the maxTimeMS options. */
|
||||
maxTimeMS(val: number): this;
|
||||
|
||||
/**
|
||||
* Merges another Query or conditions object into this one.
|
||||
* When a Query is passed, conditions, field selection and options are merged.
|
||||
|
||||
@@ -1083,6 +1083,7 @@ query.find().lt('age', 21);
|
||||
query.find().where('age').lte(21);
|
||||
query.find().lte('age', 21);
|
||||
query.maxDistance('path', 21).maxDistance(21);
|
||||
query.maxTimeMS(1000);
|
||||
query.maxscan(100).maxScan(100);
|
||||
query.maxScan(100).maxScan(100);
|
||||
query.merge(query).merge({});
|
||||
|
||||
Reference in New Issue
Block a user