From 688f40363dc45c8c23fdce6423ccfec7d99011fe Mon Sep 17 00:00:00 2001 From: Hsu Ching Feng <5862369+Fonger@users.noreply.github.com> Date: Sun, 19 Aug 2018 15:49:08 +0800 Subject: [PATCH] mongoose: add Query.readConcern() and setQuery() --- types/mongoose/index.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/types/mongoose/index.d.ts b/types/mongoose/index.d.ts index 90bb04747f..1cc80bc98b 100644 --- a/types/mongoose/index.d.ts +++ b/types/mongoose/index.d.ts @@ -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.