Chapter 3. Schemas and Models
We are going to look at the two building blocks of Mongoose, schemas, and models. We will look at their relationship to the data and how they can be used to maximize the effectiveness of Mongoose. This chapter covers fairly simple schemas; more complex schemas will be explored in Chapter 10, Complex Schemas.
By the end of this chapter, you will understand the roles of schemas and models and their relationship to the data. We will also add schemas and models to the MongoosePM example project.