NestJS #44 - MongoDB & Mongoose | Hooks & Middlewares | Instance, Static & Query Methods | (Hindi)
Mongoose Hooks are useful for running middleware functions before or after a query or operation. We can also add custom methods to Document instance for adding specific functionalities related to documents. Similarly, Mongoose provides the Static methods to bind on Models. There also exists Query Helpers to extend the find queries functionality. This video demonstrates the use of Hooks, Instance methods, Static Methods, and Query Helpers.
▬▬▬▬▬▬ 🔗 Links ▬▬▬▬▬▬
► GitHub (Source code): bit.ly/3LVA05u
► NestJS - Mongoose Schemas : • NestJS #40 - MongoDB &...
► NestJS - Mongoose Models : • NestJS #41 - MongoDB &...
► NestJS - Mongoose Users CRUD : • NestJS #42 - MongoDB &...
▬▬▬▬▬▬ 📚 CHAPTERS ▬▬▬▬▬▬
00:00 - Introduction
01:00 - Populate Field
03:06 - Pre "findOne" Hook Middleware
06:16 - Populate & Fields Projection
07:16 - Pre "find" Hook Middleware
09:23 - Pre "save" Hook Middleware - Hash Password before save
13:03 - Document Instance Method - Password compare
20:12 - Model Static method - User findByEmailAndPassword
25:48 - Query Helpers - Extend Find Queries
32:54 - Closing notes
▬▬▬▬▬▬ 🔖 RECOMMENDED COURSES ▬▬▬▬▬▬
🎬 Angular In-Depth (Hindi) - bit.ly/34nHrBh
🎬 Angular Architecture - • 1. Angular Architectur...
🎬 NestJS Framework | Backend Development (Hindi) - bit.ly/3titPk3
🎬 RxJS - The Practical Guide (Hindi) - bit.ly/3GBcXsf
🎬 RxJS - Promise vs Observable | A depth comparison - • 5. RXJS - Promise vs O...
🎬 RxJS - Introduction to Reactive programming - • 1. RXJS - Introduction...
▬▬▬▬▬▬ CONNECT WITH ME 👋 ▬▬▬▬▬▬
🐦 Twitter: / akacomputerbaba
🏠 Discord: bit.ly/3Js25iy
👓 GitHub: github.com/cis...
📧 Email: officialcomputerbaba@gmail.com
💙 Join this channel
/ computerbabaofficial
▬▬▬▬▬▬ 🎻 MUSIC ▬▬▬▬▬▬
🎵 Fresh Start - Joakim Karud
freesound.org
▬▬▬▬▬▬ # HASHTAGS ▬▬▬▬▬▬
#AmazingNestjs #nestjs #computer_baba #mongodb #mongoose #mongoose_model #mongoose_schemas #bcrypt #password_hashing #pipes #nestjs_pipes #data_transformation #microservices #dependency_injection #ioc_container #routing #nestjs_project #nodejs #rest_api #http #expressjs #fastify #graphql #mongodb #sql #typeorm #microservices #backend_development #javascript #typescript #rxjs #json
Пікірлер: 14
your teaching method is great. please make a series of react nextjs with TS and TypeScript tutorial for professional level
@ComputerBabaOfficial
Жыл бұрын
Thank you for the gratitude Tarun and I will try to create the series on React ecosystem as well.
Very detailed and informative, the channel will become a one stop shop for nestjs someday. Keep up the great work please. Also consider graphql with nestjs if possible.
@ComputerBabaOfficial
Жыл бұрын
Soif your comment is such a motivation for me thank you for the kind words. Graphql with Nestjs will come soon maybe in a separate series.
This is series amazing for nestjs developer.
thank you sir for this
thank you very much.
Nice teaching
Very helpful video
@ComputerBabaOfficial
Жыл бұрын
Thank you Grishma, Its a pleasure to share the knowledge.
please make video of mongoose with typescript
Please make video on nestjs virtuals and populate
Ye NestJS developers ke lie Bhagwad Geeta hai.
Bhai debi aur dewta mt bolo yar apman hota hai😂