add cursor rules
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-07-02 15:53:23 +03:30
parent 444a8bf1b0
commit a8a6f085d0
8 changed files with 107 additions and 3 deletions
+22
View File
@@ -0,0 +1,22 @@
---
description: MikroORM
globs:
- "src/**/*.entity.ts"
- "src/**/*.service.ts"
alwaysApply: true
---
Use MikroORM best practices.
- Never write raw SQL unless necessary.
- Prefer EntityRepository.
- Use populate instead of manual joins.
- Use wrap(entity).assign() for updates.
- Use transactions when updating multiple entities.
- Use Collection for OneToMany relations.
- Use references when appropriate.
- Avoid N+1 queries.
- Always type repository injections.
- Use indexes where needed.---
alwaysApply: true
---