From 56761f59b80614fbfc67fd190cbe11f9461f4919 Mon Sep 17 00:00:00 2001 From: Dobes Vandermeer Date: Thu, 29 Nov 2018 12:40:58 -0800 Subject: [PATCH 1/2] Add hint to CollectionAggregationOptions Although this option is, for some reason, not document. It is supported. It follows the format specified here: https://docs.mongodb.com/manual/reference/command/aggregate/ --- types/mongodb/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/mongodb/index.d.ts b/types/mongodb/index.d.ts index b31a8dd7b9..11d425dc30 100644 --- a/types/mongodb/index.d.ts +++ b/types/mongodb/index.d.ts @@ -1294,6 +1294,7 @@ export interface CollectionAggregationOptions { * Allow driver to bypass schema validation in MongoDB 3.2 or higher. */ bypassDocumentValidation?: boolean; + hint?: string | Object; raw?: boolean; promoteLongs?: boolean; promoteValues?: boolean; From 49afe7ce39261604a821ac875f57381375e58573 Mon Sep 17 00:00:00 2001 From: Dobes Vandermeer Date: Mon, 3 Dec 2018 11:42:33 -0800 Subject: [PATCH 2/2] Update index.d.ts Object -> object --- types/mongodb/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/mongodb/index.d.ts b/types/mongodb/index.d.ts index 11d425dc30..8d549d4f49 100644 --- a/types/mongodb/index.d.ts +++ b/types/mongodb/index.d.ts @@ -1294,7 +1294,7 @@ export interface CollectionAggregationOptions { * Allow driver to bypass schema validation in MongoDB 3.2 or higher. */ bypassDocumentValidation?: boolean; - hint?: string | Object; + hint?: string | object; raw?: boolean; promoteLongs?: boolean; promoteValues?: boolean;