We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9569bf commit 95cab9aCopy full SHA for 95cab9a
source/core/schema-validation.txt
@@ -148,6 +148,11 @@ Validation occurs during updates and inserts. When you add validation to
148
a collection, existing documents do not undergo validation checks until
149
modification.
150
151
+To perform validation checks on existing documents, use the
152
+:dbcommand:`validate` command or the :method:`db.collection.validate()`
153
+shell helper.
154
+
155
156
Existing Documents
157
~~~~~~~~~~~~~~~~~~
158
@@ -423,3 +428,4 @@ Additional Information
423
428
- :dbcommand:`collMod`
424
429
- :method:`db.createCollection()`
425
430
- :method:`db.getCollectionInfos()`
431
+ - :method:`db.collection.validate()`
0 commit comments