Skip to content

Commit 05b759f

Browse files
ajhuh-mdbandf-mongodb
authored andcommitted
DOCSP-14244 add reference to db.collection.validate()
1 parent be62254 commit 05b759f

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
@@ -146,6 +146,11 @@ Validation occurs during updates and inserts. When you add validation to
146146
a collection, existing documents do not undergo validation checks until
147147
modification.
148148

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+
149154
Existing Documents
150155
~~~~~~~~~~~~~~~~~~
151156

@@ -313,3 +318,4 @@ Additional Information
313318
- :dbcommand:`collMod`
314319
- :method:`db.createCollection()`
315320
- :method:`db.getCollectionInfos()`
321+
- :method:`db.collection.validate()`

0 commit comments

Comments
 (0)