File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -637,10 +637,10 @@ throws a `MongoBulkWriteException.
637
637
contains a ``writeErrors`` field consisting of a list of one or more
638
638
``WriteError`` objects associated with the same bulk write operation.
639
639
640
- Consider a collection that has a rule where the value of the ``quantity`` field
641
- must be an ``int`` type. In the following example, the driver throws a
642
- ``MongoBulkWriteException`` when you attempt to insert a document with a
643
- ``quantity`` field value of ``"three"`` and another with a ``quantity`` field
640
+ Consider a collection that has a schema validation rule where the value of the
641
+ ``quantity`` field must be an ``int`` type. In the following example, the driver
642
+ throws a ``MongoBulkWriteException`` when you attempt to insert a document with
643
+ a ``quantity`` field value of ``"three"`` and another with a ``quantity`` field
644
644
value of ``"ten"``.
645
645
646
646
.. code-block:: none
Original file line number Diff line number Diff line change @@ -202,10 +202,10 @@ The driver throws a `MongoWriteException
202
202
performing single write operations. A ``MongoWriteException`` object has an
203
203
``error`` field containing the ``WriteError`` object that caused it.
204
204
205
- Consider a collection with a rule where the value of the ``quantity`` field must
206
- be an ``int`` type. In the following example, the driver throws a
207
- ``MongoWriteException`` if you attempt to insert a document where the value of
208
- ``quantity`` is ``"three"``.
205
+ Consider a collection that has a schema validation rule where the value of the
206
+ ``quantity`` field must be an ``int`` type. In the following example, the driver
207
+ throws a ``MongoWriteException`` if you attempt to insert a document where the
208
+ value of ``quantity`` is ``"three"``.
209
209
210
210
.. code-block:: none
211
211
:copyable: false
You can’t perform that action at this time.
0 commit comments