From 56fbdf8399fcdfda1f5e75ade85ffcb6ddfe21f0 Mon Sep 17 00:00:00 2001 From: Bastien Arata Date: Fri, 22 Jun 2018 18:17:44 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20fix=20bulk=20spelling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/mongodb/v2/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/mongodb/v2/index.d.ts b/types/mongodb/v2/index.d.ts index ec3e3965ba..c1c1523d97 100644 --- a/types/mongodb/v2/index.d.ts +++ b/types/mongodb/v2/index.d.ts @@ -480,8 +480,8 @@ export interface Collection { aggregate(pipeline: Object[], options?: CollectionAggregationOptions, callback?: MongoCallback): AggregationCursor; //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#bulkWrite bulkWrite(operations: Object[], callback: MongoCallback): void; - bulkWrite(operations: Object[], options?: CollectionBluckWriteOptions): Promise; - bulkWrite(operations: Object[], options: CollectionBluckWriteOptions, callback: MongoCallback): void; + bulkWrite(operations: Object[], options?: CollectionBulkWriteOptions): Promise; + bulkWrite(operations: Object[], options: CollectionBulkWriteOptions, callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.2/api/Collection.html#count count(query: Object, callback: MongoCallback): void; count(query: Object, options?: MongoCountPreferences): Promise; @@ -851,7 +851,7 @@ export interface CollectionInsertManyOptions { } //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#bulkWrite -export interface CollectionBluckWriteOptions { +export interface CollectionBulkWriteOptions { // The write concern. w?: number | string; // The write concern timeout. From 6549dfe6dd1948f96856344ce30d4dc48fb555cc Mon Sep 17 00:00:00 2001 From: Bastien Arata Date: Fri, 22 Jun 2018 18:19:36 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=90=9B=20fix=20missing=20options=20in?= =?UTF-8?q?=20CollectionBulkWriteOptions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit http://mongodb.github.io/node-mongodb-native/3.0/api/Collection.html#bulkWrite --- types/mongodb/v2/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/mongodb/v2/index.d.ts b/types/mongodb/v2/index.d.ts index c1c1523d97..4c26149d81 100644 --- a/types/mongodb/v2/index.d.ts +++ b/types/mongodb/v2/index.d.ts @@ -860,6 +860,8 @@ export interface CollectionBulkWriteOptions { j?: boolean; // Serialize functions on any object. serializeFunctions?: boolean; + //Force server to assign _id values instead of driver. + forceServerObjectId?: boolean; // Execute write operation in ordered or unordered fashion. ordered?: boolean; // Allow driver to bypass schema validation in MongoDB 3.2 or higher.