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 3db1a2d commit ed19a09Copy full SHA for ed19a09
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
@@ -288,4 +293,5 @@ Additional Information
288
293
----------------------
289
294
290
295
.. seealso:: :dbcommand:`collMod`, :method:`db.createCollection()`,
291
- :method:`db.getCollectionInfos()`.
296
+ :method:`db.getCollectionInfos()`,
297
+ :method:`db.collection.validate()`.
0 commit comments