diff --git a/index.d.ts b/index.d.ts index 695fe60b3b4..f0e1e62b485 100644 --- a/index.d.ts +++ b/index.d.ts @@ -803,6 +803,13 @@ declare module 'mongoose' { bulkWrite(writes: Array, options?: mongodb.CollectionBulkWriteOptions): Promise; bulkWrite(writes: Array, options?: mongodb.CollectionBulkWriteOptions, cb?: Callback): void; + /** + * Sends multiple `save()` calls in a single `bulkWrite()`. This is faster than + * sending multiple `save()` calls because with `bulkSave()` there is only one + * network round trip to the MongoDB server. + */ + bulkSave(documents: Array): Promise; + /** Collection the model uses. */ collection: Collection;