Intro to Mongoose

About

This module is designed to take you through the core concepts and functionalities of Mongoose, an essential tool for any developer working with MongoDB in a Node.js environment. Through hands-on lessons, you’ll become proficient in performing Create, Read, Update, and Delete (CRUD) operations using Mongoose models. This module is designed for learners familiar with server side javascript development who are ready to begin working with a MongoDB database.

Content

Lesson Skills
Setup Setting up the development environment
Concepts Understand the role of Mongoose as an Object Document Mapping (ODM) library
Schemas and Models Understand the role of schemas and models in Mongoose
Defining a Model Create and export a Mongoose model
Creating with a Model Creating documents with Mongoose’s .create() method
Reading with a Model Read documents using find(), findById(), and findOne() methods
Updating with a Model Update documents using save() and findByIdAndUpdate()
Deleting with a Model Delete documents using deleteOne() and findByIdAndDelete()
Query Options Refine db queries with options like limit(), sort(),skip()
Advanced Querying Implement advanced querying techniques in Mongoose
Middleware Middleware in Mongoose for custom behavior
Total content  

References

📖 Reference Materials