#85 Document Middleware | Using MongoDB with Express | A Complete NODE JS Course

preview_player
Показать описание
Just like express, mongoose also has the concept of middleware. Mongoose supports four different types of middleware: 1. document middleware, 2. query middleware, 3. aggregation middleware and 4. model middleware.

In this lecture, we are going to learn about document middleware of mongoose and how to create and use it.
Рекомендации по теме
Комментарии
Автор

honestly this is the best course i have ever came across on backend in youtube lots of ❤ and respect to the best teacher.

lsylpsm
Автор

Excellent work, friend. Let me ask, when do you plan to post authentication lectures? I'm really enjoying your classes, thank you very much for the content, it's excellent

deyvisondevs
Автор

where can we get the json data files for this one?

MithOpog
Автор

{
"releaseYear": 1999,
"name": "The Matrix",
"directors": [
"Lana Wachowski",
"Lilly Wachowski"
],
"releaseDate": "1999-03-31T00:00:00.000Z",
"ratings": 8.7,
"totalRating": 755,
"genres": [
"Action",
"Sci-Fi"
],
"coverImage": "The-Matrix-1999.jpg",
"description": "A computer hacker discovers a dystopian world reality while on a quest to find the mysterious hacker Morpheus.",
"duration": 136,
"actors": [
"Keanu Reeves",
"Laurence Fishburne",
"Carrie-Anne Moss"
],
"price": 50
}

DecoyCheats