Application Structure and Providers in NestJS
Up to this point, we have explored how to design relational databases and model database tables into code using TypeORM entities. However, in a professional web backend, entities are just one part of a much larger architectural engine.
Repositories and Queries with TypeORM in NestJS
Once our database entities have been modeled, the next fundamental milestone is interacting with them from application logic. Rather than writing raw, manual SQL queries inside services, NestJS and TypeORM leverage the Repository Pattern—an object-oriented abstraction that allows querying, creating, updating, and deleting records safely and with strong typing.
Weekly Slides
Official presentation slides for Week 5: Layered Architecture, Inversion of Control (IoC), Providers, and Relational Persistence with TypeORM Repositories.