docs.nestjs.com
docs.nestjs.com copied to clipboard
docs: update mikro-orm custom repository creation example
PR Checklist
Please check if your PR fulfills the following requirements:
- [x] The commit message follows our guidelines: https://github.com/nestjs/docs.nestjs.com/blob/master/CONTRIBUTING.md
PR Type
What kind of change does this PR introduce?
- [ ] Bugfix
- [ ] Feature
- [ ] Code style update (formatting, local variables)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [x] Docs
- [ ] Other... Please describe:
Latest version 5 of mikro-orm doesn't use @Repository
decorator anymore.
Custom repository is configured in @Entity
decorator now
https://mikro-orm.io/docs/repositories#custom-repository
Does this PR introduce a breaking change?
- [ ] Yes
- [x] No