Skip to content

Commit 107ef4b

Browse files
committed
review feedback
1 parent 44aa2a7 commit 107ef4b

File tree

1 file changed

+10
-9
lines changed
  • source/fundamentals/crud/write-operations

1 file changed

+10
-9
lines changed

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ see the following API Documentation:
214214
Order of Execution
215215
------------------
216216

217-
The ``bulkWrite()`` method accepts an optional ``BulkWriteOptions`` as
218-
a second parameter to specify the execution of the bulk operations as
217+
The ``bulkWrite()`` method accepts an optional ``BulkWriteOptions`` as a
218+
second parameter to specify whether the execution of the bulk operations is
219219
ordered or unordered.
220220

221221
Ordered Execution
@@ -230,13 +230,13 @@ Example
230230

231231
The following example performs these bulk operations:
232232

233-
- An insert operation for a document where the ``name`` is ``"Zaynab Omar"`` and the
234-
``age`` is ``37``
235-
- A replace operation for a document where the ``_id`` is ``1`` with a new document
233+
- An operation that inserts a document with a ``name`` value of ``"Zaynab Omar"`` and an
234+
``age`` value of ``37``
235+
- An operation that replaces the document where the ``_id`` is ``1`` with a new document
236236
that contains the ``location`` field
237-
- An update operation for a document where the ``name`` is ``"Zaynab Omar"`` to change the ``name``
238-
field to ``"Zaynab Hassan"``
239-
- A delete operation for all documents that have an ``age`` value greater than ``50``
237+
- An operation that updates the document with a ``name`` value of ``"Zaynab Omar"`` and
238+
changes the ``name`` to ``"Zaynab Hassan"``
239+
- An operation that deletes all documents where the ``age`` value is greater than ``50``
240240

241241
.. literalinclude:: /includes/fundamentals/code-snippets/BulkWrite.java
242242
:language: java
@@ -308,4 +308,5 @@ There are 6 different ``WriteModel`` documents: ``InsertOneModel``,
308308
There are two ways to execute the ``bulkWrite()`` method:
309309

310310
- Ordered, which performs the bulk operations in order until an error occurs, if any
311-
- Unordered, which performs all the bulk operations in any order and reports errors at the end, if any
311+
- Unordered, which performs all the bulk operations in any order and reports errors
312+
at the end, if any

0 commit comments

Comments
 (0)