Description
In this course, you will learn :
- Know different data types in the Mongoose Schema class
- Store photo and other binary data in MongoDB with Mongoose
- Use the populate method and Mongoose references
- Create custom Methods and invoke them
- Create pre and post Mongoose Hooks to better organize your business logic
- Create custom Mongoose setters and getters methods for each field
- Perform validation so your app is protected from malicious inputs
- Create custom validation methods
- Work with virtuals
- Write static and instance custom Model methods
- Create and use Mongoose Models
- Find Mongoose plugins
- Organize files with Express app
- Bubble errors with the ok module
- Use the Validate method
- Use Enum data type
- Know the difference between the update and save methods
Syllabus :
1. Basics
- Schema, Model, and The Find Method
- The Save Method
- Schema Types, Its Properties and Validation
- Required Property and Schema Validation
- Additional Schema Types
- Complex Schema With Nested Objects
- Bubbling Errors With The Okay Module
- The FindOne Method for Get and Put Requests
- Enum Schema Property
- Setters and Getters in Schema
- Custom Field Validation and The Path Method
- Summary and The Remove Method
2. Advanced
- Selecting Fields
- Virtual Fields
- Pre Save Hook
- Pre Validate Hook
- Post Save Hook
- The Populate Method and References
- Static and Instance Methods
- Uploading and Storing Binary Data