@@ -71,22 +71,23 @@ specify the write operations:
71
71
operations, see the :ref:`Write operation guides <php-write>`.
72
72
73
73
When you call the ``bulkWrite()`` method, the library automatically runs the
74
- write operations in the order they're specified in the array. To instruct ``bulkWrite()``
75
- to run the write operations in an arbitrary order, see the :ref:`php-bulk-modify` section.
74
+ write operations in the order they're specified in the array. To learn how to
75
+ instruct ``bulkWrite()`` to run the write operations in an arbitrary order,
76
+ see the :ref:`php-bulk-modify` section.
76
77
77
78
Example
78
79
~~~~~~~
79
80
80
81
This example runs the following write operations on the ``restaurants``
81
82
collection:
82
83
83
- - Insert operation, which inserts a document in which the ``name`` value is
84
+ - ** Insert operation** to insert a document in which the ``name`` value is
84
85
``'Mongo's Deli'``
85
86
86
- - Update operation, which updates the ``cuisine`` field of a document in
87
+ - ** Update operation** to update the ``cuisine`` field of a document in
87
88
which the ``name`` value is ``'Mongo's Deli'``
88
89
89
- - Delete operation, which deletes all documents in which the ``borough`` value
90
+ - ** Delete operation** to delete all documents in which the ``borough`` value
90
91
is ``'Manhattan'``
91
92
92
93
.. literalinclude:: /includes/write/bulk-write.php
@@ -115,8 +116,8 @@ describes the options you can set in the array:
115
116
- | Specifies whether the operation bypasses document validation. This lets you
116
117
modify documents that don't meet the schema validation requirements, if any
117
118
exist. For more information about schema validation, see :manual:`Schema
118
- Validation </core/schema-validation/#schema-validation>` in the MongoDB
119
- Server manual.
119
+ Validation </core/schema-validation/#schema-validation>` in the {+mdb-server+}
120
+ manual.
120
121
| Defaults to ``false``.
121
122
122
123
* - ``codec``
@@ -140,7 +141,7 @@ describes the options you can set in the array:
140
141
- | If set to ``true``: when a single write fails, the operation stops without
141
142
performing the remaining writes and throws an exception.
142
143
| If set to ``false``: when a single write fails, the operation continues to
143
- attempt the remaining write operations, if any, and throws an exception.
144
+ attempt the remaining write operations, if any, then throws an exception.
144
145
| Defaults to ``true``.
145
146
146
147
* - ``comment``
0 commit comments