Skip to content

Commit 4abbd49

Browse files
committed
DOCSP-30350 minor change tech reivew clarify schema validation
1 parent dd420c2 commit 4abbd49

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

source/crud/bulk.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -637,10 +637,10 @@ throws a `MongoBulkWriteException.
637637
contains a ``writeErrors`` field consisting of a list of one or more
638638
``WriteError`` objects associated with the same bulk write operation.
639639

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
644644
value of ``"ten"``.
645645

646646
.. code-block:: none

source/crud/insert.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,10 @@ The driver throws a `MongoWriteException
202202
performing single write operations. A ``MongoWriteException`` object has an
203203
``error`` field containing the ``WriteError`` object that caused it.
204204

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"``.
209209

210210
.. code-block:: none
211211
:copyable: false

0 commit comments

Comments
 (0)