From d4b93e7a84a24b58dbe5ad2be56534ed72b50ca4 Mon Sep 17 00:00:00 2001 From: Ashwin Ramaswami Date: Mon, 31 Dec 2018 07:45:58 -0500 Subject: [PATCH] Add Query.getOptions() --- types/mongoose/index.d.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/types/mongoose/index.d.ts b/types/mongoose/index.d.ts index 87ce57f05c..b588b4ecef 100644 --- a/types/mongoose/index.d.ts +++ b/types/mongoose/index.d.ts @@ -1894,7 +1894,13 @@ declare module "mongoose" { * is an Array. See the examples. */ geometry(object: { type: string, coordinates: any[] }): this; - + + /** + * Returns the current query options as a JSON object. + * @returns current query options + */ + getOptions(): any; + /** * Returns the current query conditions as a JSON object. * @returns current query conditions