docs.nestjs.com icon indicating copy to clipboard operation
docs.nestjs.com copied to clipboard

docs: update mikro-orm custom repository creation example

Open gutovskii opened this issue 2 years ago • 0 comments

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

gutovskii avatar Feb 16 '23 11:02 gutovskii