What problem does it solve?
This Skill addresses the complexities of integrating and maintaining TypeORM within a NestJS project, offering structured guidance for entities, migrations, repositories, and more.
Core Features & Use Cases
- Structured Setup: Provides a clear, scalable way to set up TypeORM in a NestJS project.
- Entity and Relation Management: Assists with entity design, including relations, and their refactoring.
- Migrations Configuration: Walks through the setup of migrations and environment-specific DB settings.
- Repository Integration: Instructs on wiring repositories into services using Nest DI.
- Transactions and Query Patterns: Guides on implementing transactions and safe query patterns.
- Performance Optimization: Offers advice on optimizing DB usage, indexing, and query patterns.
- Use Case: If you are building a NestJS API with a PostgreSQL database and need to set up TypeORM, define entities, and configure migrations, this skill is for you.
Quick Start
Run the skill by providing the project root and follow the structured workflow to set up TypeORM and define your entities and relations.