Skip to content

Commit 95cab9a

Browse files
ajhuh-mdbandf-mongodb
authored andcommitted
DOCSP-14244 add reference to db.collection.validate()
1 parent d9569bf commit 95cab9a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/core/schema-validation.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ Validation occurs during updates and inserts. When you add validation to
148148
a collection, existing documents do not undergo validation checks until
149149
modification.
150150

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+
151156
Existing Documents
152157
~~~~~~~~~~~~~~~~~~
153158

@@ -423,3 +428,4 @@ Additional Information
423428
- :dbcommand:`collMod`
424429
- :method:`db.createCollection()`
425430
- :method:`db.getCollectionInfos()`
431+
- :method:`db.collection.validate()`

0 commit comments

Comments
 (0)