Skip to content

Commit 7dc8fd1

Browse files
ajhuh-mdbandf-mongodb
authored andcommitted
DOCSP-14244 add reference to db.collection.validate()
1 parent a7b321b commit 7dc8fd1

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

@@ -306,4 +311,5 @@ Additional Information
306311
----------------------
307312

308313
.. seealso:: :dbcommand:`collMod`, :method:`db.createCollection()`,
309-
:method:`db.getCollectionInfos()`.
314+
:method:`db.getCollectionInfos()`,
315+
:method:`db.collection.validate()`.

0 commit comments

Comments
 (0)