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 be62254 commit 05b759fCopy full SHA for 05b759f
source/core/schema-validation.txt
@@ -146,6 +146,11 @@ Validation occurs during updates and inserts. When you add validation to
146
a collection, existing documents do not undergo validation checks until
147
modification.
148
149
+To perform validation checks on existing documents, use the
150
+:dbcommand:`validate` command or the :method:`db.collection.validate()`
151
+shell helper.
152
+
153
154
Existing Documents
155
~~~~~~~~~~~~~~~~~~
156
@@ -313,3 +318,4 @@ Additional Information
313
318
- :dbcommand:`collMod`
314
319
- :method:`db.createCollection()`
315
320
- :method:`db.getCollectionInfos()`
321
+ - :method:`db.collection.validate()`
0 commit comments