In some scenarios, we need to work with multiple databases which require our application to establish connections with the respective database. This video explains how we can configure Mongoose with NestJS to have Multiple DB & Multiple connections environments. Also, we will see a special case where a single Database has different connections.
▬▬▬▬▬▬ 🔗 Links ▬▬▬▬▬▬
► GitHub (Source code): https://bit.ly/3CZuGeu
► NestJS - Mongoose | Setup & Configuration : • NestJS #39 - MongoDB & Mongoose | Set...
► NestJS - Env Variables Based Configuration : • NestJS #36 - Configuration | Env Vari...
▬▬▬▬▬▬ 📚 CHAPTERS ▬▬▬▬▬▬
00:00 - Introduction
01:13 - Configuring Multi DB Connection
03:53 - Connection Based Model Creation
04:27 - Connection Based Model Injection
05:48 - Admin DB & Connection
07:29 - Best Practice - Connection names Enum
09:19 - @InjectConnection Decorator
10:58 - Same DB Multiple Connections
13:36 - Multi Conn with MongooseModule Factory Provider
16:22 - Multi Conn with MongooseModule Config Service
17:24 - Closing notes
18:27 - Outro
▬▬▬▬▬▬ 🔖 RECOMMENDED COURSES ▬▬▬▬▬▬
🎬 Angular In-Depth (Hindi) - https://bit.ly/34nHrBh
🎬 Angular Architecture - • 1. Angular Architecture | Angular In ...
🎬 NestJS Framework | Backend Development (Hindi) - https://bit.ly/3titPk3
🎬 RxJS - The Practical Guide (Hindi) - https://bit.ly/3GBcXsf
🎬 RxJS - Promise vs Observable | A depth comparison - • 5. RXJS - Promise vs Observable | A d...
🎬 RxJS - Introduction to Reactive programming - • 1. RXJS - Introduction to Reactive pr...
▬▬▬▬▬▬ CONNECT WITH ME 👋 ▬▬▬▬▬▬
🐦 Twitter: / akacomputerbaba
🏠 Discord: https://bit.ly/3Js25iy
👓 GitHub: https://github.com/cistroncoder
📧 Email: [email protected]
💙 Join this channel
/ computerbabaofficial
▬▬▬▬▬▬ 🎻 MUSIC ▬▬▬▬▬▬
🎵 Fresh Start - Joakim Karud
https://freesound.org
▬▬▬▬▬▬ # HASHTAGS ▬▬▬▬▬▬
#AmazingNestjs #nestjs #computer_baba #mongodb #mongoose #mongoose_connection #mongoose_multi_database_config #mongoose_multiple_database #mongoose_discriminators #mongoose_model #inheritance #schema_desgin #database_schema_design #discriminators #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