Object‑Relational Mapping (ORM) bridges the gap between your code and your database.
This unit covers the Active Record and Data Mapper patterns, defining relationships,
the N+1 problem, migrations, and transactions — using modern tools like Prisma and TypeORM.
Unit Learning Outcomes
Implement CRUD operations using an ORM (Prisma/TypeORM).
Define and query relationships (1:1, 1:N, M:N).
Solve the N+1 query problem using eager loading.
Create and run database migrations.
Write transactional operations with rollback support.