diff --git a/source/core/schema-validation.txt b/source/core/schema-validation.txt index 31177f496ee..8f3fb0d945c 100644 --- a/source/core/schema-validation.txt +++ b/source/core/schema-validation.txt @@ -146,6 +146,11 @@ Validation occurs during updates and inserts. When you add validation to a collection, existing documents do not undergo validation checks until modification. +To perform validation checks on existing documents, use the +:dbcommand:`validate` command or the :method:`db.collection.validate()` +shell helper. + + Existing Documents ~~~~~~~~~~~~~~~~~~ @@ -313,3 +318,4 @@ Additional Information - :dbcommand:`collMod` - :method:`db.createCollection()` - :method:`db.getCollectionInfos()` + - :method:`db.collection.validate()`