Skip to content

Commit 4f6ad46

Browse files
committed
feedback
1 parent 0c28a03 commit 4f6ad46

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

source/code-snippets/crud/bulk.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ const uri = '<connection string>'; // Add your MongoDB connection string here
1515
await movies.deleteMany({});
1616

1717
// begin-sample-data
18+
// const movies = database.collection('movies');
19+
1820
const docs = [
1921
{ title: "Inception", year: 2010, rated: "PG-13", released: "2010-07-16" },
2022
{ title: "Interstellar", year: 2014, rated: "PG-13", released: "2014-11-07" },

source/fundamentals/crud/write-operations/bulk.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ perform **bulk operations**.
1919
Bulk operations perform multiple write operations against one or more
2020
collections within a database. In MongoDB, you refer to a collection by combining
2121
the database name and the collection name in the format ``<database>.<collection>``.
22-
Since you perform bulk operations on a ``MongoClient`` instance, you can perform
23-
bulk operations against any database and collection in the cluster accessed by
24-
your client.
2522

2623
Bulk operations help reduce the number of calls to the server. Instead of sending
2724
a request for each operation, you can perform multiple operations within one action.
@@ -395,7 +392,7 @@ To learn more about any of the methods or types discussed in this
395392
guide, see the following API documentation:
396393

397394
- `BulkWrite() <{+api+}/classes/Collection.html#bulkWrite>`__
398-
- `ClientBulkWriteResult <{+api+}/classes/BulkWriteResult.html>`__
395+
- `BulkWriteResult <{+api+}/classes/BulkWriteResult.html>`__
399396
- `InsertOneModel <{+api+}/classes/OrderedBulkOperation.html#insert>`__
400397
- `InsertOne <{+api+}/classes/Collection.html#insertOne>`__
401398
- `ReplaceOne <{+api+}/classes/Collection.html#replaceOne>`__
@@ -405,5 +402,4 @@ guide, see the following API documentation:
405402
- `UpdateOneModel <{+api+}/interfaces/UpdateOneModel.html>`__
406403
- `DeleteOne <{+api+}/classes/Collection.html#deleteOne>`__
407404
- `DeleteMany <{+api+}/classes/Collection.html#deleteMany>`__
408-
- `DeleteOneModel <{+api+}/interfaces/DeleteOneModel.html>`__
409-
- `ClientBulkWriteException <{+api+}/classes/MongoClientBulkWriteExecutionError.html>`__
405+
- `DeleteOneModel <{+api+}/interfaces/DeleteOneModel.html>`__

0 commit comments

Comments
 (0)