Node.js & TypeScript ORMs and Query Builders

Parent: JavaScript and Node.js · researched 2026-06-02T22:05:57.547Z· 16 sources · 7 concepts · skill nodejs-orm-query-builders

This reference is about the SQL data-access layer in TypeScript/Node.js: the

Overview

1. Prisma — schema-first ORM with a generated client

2. Drizzle ORM — SQL-first, no codegen, no runtime engine

3. Kysely — a type-safe query *builder* (not an ORM)

4. TypeORM, Sequelize & MikroORM — entities, decorators, the AR/DM split

5. Migrations strategy (cross-cutting)

6. The N+1 problem, eager/lazy loading & DataLoader (cross-cutting)

7. Transactions, pooling, raw SQL & repositories (cross-cutting)

Library comparison & selection

Practical patterns

Anti-patterns

Troubleshooting

References

Children

Frontier under this node: Drizzle ORM — SQL-first, no codegen, no runtime engine, Kysely — a type-safe query builder (not an ORM), Migrations strategy (cross-cutting), Prisma — schema-first ORM with a generated client, The N+1 problem, eager/lazy loading & DataLoader (cross-cutting), Transactions, pooling, raw SQL & repositories (cross-cutting), TypeORM, Sequelize & MikroORM — entities, decorators, the AR/DM split

← the whole tree · 3D view· how to read this page