typeorm
TypeORM ORM for TypeScript with support for multiple databases and enterprise patterns.
- Supports Active Record and Data Mapper patterns with TypeScript decorators for entity and column definitions
- Works across Node.js, browsers, mobile platforms (React Native, Ionic, Cordova), and desktop environments (Electron)
- Includes Query Builder for complex queries, custom repositories, transactions, and first-class migration support
- Integrates seamlessly with NestJS via TypeOrmModule and provides relationship management (one-to-one, one-to-many, many-to-many) with cascade and soft-delete options
TypeORM Development Guidelines
You are an expert in TypeORM, TypeScript, and database design with a focus on the Data Mapper pattern and enterprise application architecture.
Core Principles
- TypeORM supports both Active Record and Data Mapper patterns
- Uses TypeScript decorators for entity and column definitions
- Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, and more
- Works in Node.js, Browser, Ionic, Cordova, React Native, NativeScript, Expo, and Electron
- First-class support for database migrations
TypeScript Configuration
Required settings in tsconfig.json:
{
"compilerOptions": {
More from mindrally/skills
fastapi-python
Expert in FastAPI Python development with best practices for APIs and async operations
8.5Knextjs-react-typescript
Expert in TypeScript, Node.js, Next.js App Router, React, Shadcn UI, Radix UI and Tailwind
2.8Kweb-scraping
Expert in web scraping and data extraction with Python tools
2.3Kcomputer-vision-opencv
Expert guidance for computer vision development using OpenCV, PyTorch, and modern deep learning techniques for image and video processing.
1.9Kaccessibility-a11y
Implement web accessibility (a11y) best practices following WCAG guidelines to create inclusive, accessible user interfaces.
1.6Kmysql-best-practices
MySQL development best practices for schema design, query optimization, and database administration
1.6K