From 0f5572482831708adead474ea4c60db670429629 Mon Sep 17 00:00:00 2001 From: alisonjhuh Date: Tue, 8 Jun 2021 14:20:10 -0400 Subject: [PATCH] DOCSP-14244 add reference to db.collection.validate() --- source/core/schema-validation.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/core/schema-validation.txt b/source/core/schema-validation.txt index 6638120d88b..b3d916ef8ae 100644 --- a/source/core/schema-validation.txt +++ b/source/core/schema-validation.txt @@ -148,6 +148,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 ~~~~~~~~~~~~~~~~~~ @@ -423,3 +428,4 @@ Additional Information - :dbcommand:`collMod` - :method:`db.createCollection()` - :method:`db.getCollectionInfos()` + - :method:`db.collection.validate()`