MERN Full Stack Development
Computer ScienceChapter 6 — MongoDB and Mongoose
Lesson 6.4 : Mongoose Schemas and Models
Reading & Interactive Lesson
Mongoose Schemas and Models
Reading Material & Notes
Mongoose Schemas and Models
A Mongoose schema describes the structure and rules for documents handled by a model.
const userSchema = new mongoose.Schema({
name: String,
email: String
});
const User = mongoose.model("User", userSchema);
Models provide methods for creating, finding and modifying documents.
Course Curriculum
10 Chapters • 50 Lessons
Chapter 1 — Introduction to MERN Stack
5 Lessons
Chapter 2 — HTML, CSS and JavaScript Fundamentals
5 Lessons
Chapter 3 — React JS for MERN Development
5 Lessons
Chapter 4 — Node.js Fundamentals
5 Lessons
Chapter 5 — Express.js and REST APIs
5 Lessons
Chapter 6 — MongoDB and Mongoose
5 Lessons
Chapter 7 — Authentication and Authorization
5 Lessons
Chapter 8 — Frontend and Backend Integration
5 Lessons
Chapter 9 — Advanced MERN Development
5 Lessons
Chapter 10 — MERN Full Stack Project and Deployment
5 Lessons