Chapter 9. Validating Data
An important part of any application that takes data entered by a user is data integrity. In this chapter, we are going to look at different ways of validating data before it is saved to the database. We will look at the built-in Mongoose validators, and also how to add custom validation.
By the end of this chapter, you will understand the different approaches to data validation with Mongoose, and will have added validation to create and update sections of our MongoosePM application.