You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order not to introduce breaking changes, we can add a separate method TypeOrmModule.forCustomRepositoryFeature which will do what the TypeOrmModule.forFeature method does now (maybe just call it) and at the same time logic to support custom repositories.
What is the motivation / use case for changing the behavior?
Ease of use and extensibility of the repository pattern with additional method definitions.
The text was updated successfully, but these errors were encountered:
custom repositories are still supported already, but not the AbstractRepository one because it was deprecated in v0.3
As Repository and EntityRepository are defined on typeorm package (not @nestjs/typeorm) we would have to move their code to here (or something like that) in order to implement what you're requesting? 🤔 not sure if I follow. Or maybe just those pieces like described in that gist
Anyways, there are no plans to implement it in the foreseeable future.
If you think your request could live outside Nest's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.
Is there an existing issue that is already proposing this?
Is your feature request related to a problem? Please describe it
Feature request related to breaking changes between
typeorm@^0.2
andtypeorm@^0.3
versionsDescribe the solution you'd like
A fully working solution is described here
Teachability, documentation, adoption, migration strategy
In order not to introduce breaking changes, we can add a separate method
TypeOrmModule.forCustomRepositoryFeature
which will do what theTypeOrmModule.forFeature
method does now (maybe just call it) and at the same time logic to support custom repositories.What is the motivation / use case for changing the behavior?
Ease of use and extensibility of the repository pattern with additional method definitions.
The text was updated successfully, but these errors were encountered: