Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
gmiller-mdb committed Jan 6, 2025
1 parent 0c28a03 commit 4f6ad46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions source/code-snippets/crud/bulk.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const uri = '<connection string>'; // Add your MongoDB connection string here
await movies.deleteMany({});

// begin-sample-data
// const movies = database.collection('movies');

const docs = [
{ title: "Inception", year: 2010, rated: "PG-13", released: "2010-07-16" },
{ title: "Interstellar", year: 2014, rated: "PG-13", released: "2014-11-07" },
Expand Down
8 changes: 2 additions & 6 deletions source/fundamentals/crud/write-operations/bulk.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ perform **bulk operations**.
Bulk operations perform multiple write operations against one or more
collections within a database. In MongoDB, you refer to a collection by combining

Check failure on line 20 in source/fundamentals/crud/write-operations/bulk.txt

View workflow job for this annotation

GitHub Actions / TDBX Vale rules

[vale] reported by reviewdog 🐶 [MongoDB.ConciseTerms] 'see' is preferred over 'refer to'. Raw Output: {"message": "[MongoDB.ConciseTerms] 'see' is preferred over 'refer to'.", "location": {"path": "source/fundamentals/crud/write-operations/bulk.txt", "range": {"start": {"line": 20, "column": 48}}}, "severity": "ERROR"}
the database name and the collection name in the format ``<database>.<collection>``.
Since you perform bulk operations on a ``MongoClient`` instance, you can perform
bulk operations against any database and collection in the cluster accessed by
your client.

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

- `BulkWrite() <{+api+}/classes/Collection.html#bulkWrite>`__
- `ClientBulkWriteResult <{+api+}/classes/BulkWriteResult.html>`__
- `BulkWriteResult <{+api+}/classes/BulkWriteResult.html>`__
- `InsertOneModel <{+api+}/classes/OrderedBulkOperation.html#insert>`__
- `InsertOne <{+api+}/classes/Collection.html#insertOne>`__
- `ReplaceOne <{+api+}/classes/Collection.html#replaceOne>`__
Expand All @@ -405,5 +402,4 @@ guide, see the following API documentation:
- `UpdateOneModel <{+api+}/interfaces/UpdateOneModel.html>`__
- `DeleteOne <{+api+}/classes/Collection.html#deleteOne>`__
- `DeleteMany <{+api+}/classes/Collection.html#deleteMany>`__
- `DeleteOneModel <{+api+}/interfaces/DeleteOneModel.html>`__
- `ClientBulkWriteException <{+api+}/classes/MongoClientBulkWriteExecutionError.html>`__
- `DeleteOneModel <{+api+}/interfaces/DeleteOneModel.html>`__

0 comments on commit 4f6ad46

Please sign in to comment.