Skip to content

Commit ed19a09

Browse files
ajhuh-mdbandf-mongodb
authored andcommitted
DOCSP-14244 add reference to db.collection.validate()
1 parent 3db1a2d commit ed19a09

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

source/core/schema-validation.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ Validation occurs during updates and inserts. When you add validation to
137137
a collection, existing documents do not undergo validation checks until
138138
modification.
139139

140+
To perform validation checks on existing documents, use the
141+
:dbcommand:`validate` command or the :method:`db.collection.validate()`
142+
shell helper.
143+
144+
140145
Existing Documents
141146
~~~~~~~~~~~~~~~~~~
142147

@@ -288,4 +293,5 @@ Additional Information
288293
----------------------
289294

290295
.. seealso:: :dbcommand:`collMod`, :method:`db.createCollection()`,
291-
:method:`db.getCollectionInfos()`.
296+
:method:`db.getCollectionInfos()`,
297+
:method:`db.collection.validate()`.

0 commit comments

Comments
 (0)