mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Mongodb insert many (#18473)
* Improve types for Collection.insertMany * Add contribution * Remove blank line
This commit is contained in:
Vendored
+6
-1
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/mongodb/node-mongodb-native/tree/2.2
|
||||
// Definitions by: Federico Caselli <https://github.com/CaselIT>
|
||||
// Alan Marcell <https://github.com/alanmarcell>
|
||||
// Gady Piazza <https://github.com/kikar>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@@ -672,7 +673,7 @@ export interface CollectionAggregationOptions {
|
||||
bypassDocumentValidation?: boolean;
|
||||
}
|
||||
|
||||
//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertMany
|
||||
//http://mongodb.github.io/node-mongodb-native/2.2/api/Collection.html#insertMany
|
||||
export interface CollectionInsertManyOptions {
|
||||
// The write concern.
|
||||
w?: number | string;
|
||||
@@ -684,6 +685,10 @@ export interface CollectionInsertManyOptions {
|
||||
serializeFunctions?: boolean;
|
||||
//Force server to assign _id values instead of driver.
|
||||
forceServerObjectId?: boolean;
|
||||
// Allow driver to bypass schema validation in MongoDB 3.2 or higher.
|
||||
bypassDocumentValidation?: boolean;
|
||||
// If true, when an insert fails, don't execute the remaining writes. If false, continue with remaining inserts when one fails.
|
||||
ordered?: boolean;
|
||||
}
|
||||
|
||||
//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#bulkWrite
|
||||
|
||||
Reference in New Issue
Block a user