Cleanup
This commit is contained in:
6
node_modules/mongodb/lib/operations/insert_many.js
generated
vendored
6
node_modules/mongodb/lib/operations/insert_many.js
generated
vendored
@@ -30,11 +30,7 @@ class InsertManyOperation extends OperationBase {
|
||||
docs = prepareDocs(coll, docs, options);
|
||||
|
||||
// Generate the bulk write operations
|
||||
const operations = [
|
||||
{
|
||||
insertMany: docs
|
||||
}
|
||||
];
|
||||
const operations = docs.map(document => ({ insertOne: { document } }));
|
||||
|
||||
const bulkWriteOperation = new BulkWriteOperation(coll, operations, options);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user