mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 09:41:45 +00:00
mongoose: add Query.readConcern() and setQuery()
This commit is contained in:
Vendored
+8
@@ -1877,6 +1877,12 @@ declare module "mongoose" {
|
||||
*/
|
||||
read(pref: string, tags?: any[]): this;
|
||||
|
||||
/**
|
||||
* Sets the readConcern option for the query.
|
||||
* @param level one of the listed read concern level or their aliases
|
||||
*/
|
||||
readConcern(level: string): this;
|
||||
|
||||
/**
|
||||
* Specifies a $regex query condition.
|
||||
* When called with one argument, the most recent path passed to where() is used.
|
||||
@@ -1903,6 +1909,8 @@ declare module "mongoose" {
|
||||
selectedInclusively(): boolean;
|
||||
/** Sets query options. */
|
||||
setOptions(options: any): this;
|
||||
/** Sets query conditions to the provided JSON object. */
|
||||
setQuery(conditions: any): this;
|
||||
|
||||
/**
|
||||
* Specifies a $size query condition.
|
||||
|
||||
Reference in New Issue
Block a user