Skip to content

Commit a755ba5

Browse files
Merge pull request #2135 from micalevisk/patch-1
docs: clarify on custom repository limitation in sql.md
2 parents fbfc17e + bdf82e5 commit a755ba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/techniques/sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ Now a substitute `mockRepository` will be used as the `UsersRepository`. Wheneve
642642

643643
#### Custom repository
644644

645-
TypeORM provides a feature called **custom repositories**. Custom repositories allow you to extend a base repository class, and enrich it with several special methods. To learn more about this feature, visit [this page](https://typeorm.io/#/custom-repository).
645+
TypeORM provides a feature called **custom repositories**. Custom repositories allow you to extend a base repository class, and enrich it with several special methods. To learn more about this feature, visit [this page](https://typeorm.io/#/custom-repository). Be aware that custom repositories are outside of NestJS's Dependency Injection system, thus you can't inject any values into them.
646646

647647
In order to create your custom repository, use the `@EntityRepository()` decorator and extend the `Repository` class.
648648

0 commit comments

Comments
 (0)