Working with Schema Validation in MongoDB


 

This article is part of Robert Sheldon’s continuing series on Mongo DB. To see all of the items in the series, click here.

In the previous article in this series, I introduced you to schema validation in MongoDB. I described how you can define validation rules on a collection and how those rules validate document inserts and updates. In this article, I continue the discussion by explaining how to apply validation rules to documents that already exist in a collection. Before you start in on this article, however, I recommend that you first review the previous article for an introduction