NestJS Skill
When to Use
- Building modular server-side apps
- Using dependency injection
- Structuring scalable APIs
Critical Patterns
- Use modules for separation
- Providers for business logic
- Decorators for routing and DI
Decision Tree
- REST or GraphQL? → Use controllers
- Service logic? → Use providers
- Config management? → Use ConfigModule
Edge Cases
- Circular dependency injection
- Custom provider scopes
- Module import order