mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 07:17:04 +00:00
insertMany - changed incorrect explanation in comment (#40819)
This commit is contained in:
committed by
Andrew Branch
parent
c923849a86
commit
d9d2f9f44c
Vendored
+2
-1
@@ -33,6 +33,7 @@
|
||||
// Chathu Vishwajith <https://github.com/iamchathu>
|
||||
// Tom Yam <https://github.com/tomyam1>
|
||||
// Thomas Pischulski <https://github.com/nephix>
|
||||
// Sam Kim <https://github.com/rlaace423>
|
||||
// Dongjun Lee <https://github.com/ChazEpps>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 3.0
|
||||
@@ -3255,7 +3256,7 @@ declare module "mongoose" {
|
||||
* @param options.ordered if true, will fail fast on the first error encountered.
|
||||
* If false, will insert all the documents it can and report errors later.
|
||||
* @param options.rawResult if false, the returned promise resolves to the documents that passed mongoose document validation.
|
||||
* If `false`, will return the [raw result from the MongoDB driver](http://mongodb.github.io/node-mongodb-native/2.2/api/Collection.html#~insertWriteOpCallback)
|
||||
* If `true`, will return the [raw result from the MongoDB driver](http://mongodb.github.io/node-mongodb-native/2.2/api/Collection.html#~insertWriteOpCallback)
|
||||
* with a `mongoose` property that contains `validationErrors` if this is an unordered `insertMany`.
|
||||
*/
|
||||
insertMany(docs: any[], callback?: (error: any, docs: T[]) => void): Promise<T[]>;
|
||||
|
||||
Reference in New Issue
Block a user