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 a7b321b commit 7dc8fd1Copy full SHA for 7dc8fd1
source/core/schema-validation.txt
@@ -137,6 +137,11 @@ Validation occurs during updates and inserts. When you add validation to
137
a collection, existing documents do not undergo validation checks until
138
modification.
139
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
145
Existing Documents
146
~~~~~~~~~~~~~~~~~~
147
@@ -306,4 +311,5 @@ Additional Information
306
311
----------------------
307
312
308
313
.. seealso:: :dbcommand:`collMod`, :method:`db.createCollection()`,
309
- :method:`db.getCollectionInfos()`.
314
+ :method:`db.getCollectionInfos()`,
315
+ :method:`db.collection.validate()`.
0 commit comments