We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This decorator of which using to create custom repositories is deprecated. Please be aware Ariel :)
The text was updated successfully, but these errors were encountered:
create a custom repository like below and use it as the entity repository, passing the entity as an argument
export function CustomRepository(entity: Function): ClassDecorator { return SetMetadata(TYPEORM_EX_CUSTOM_REPOSITORY, entity); }
@CustomRepository(Task) export class TaskRepository extends Repository { constructor(private dataSource: DataSource) { super(Task, dataSource.createEntityManager()); }
Sorry, something went wrong.
I tried the solution on the Stackoverflow. It works but it doesn't use EntityRepository or CustomRepositoy decorators.
https://github.com/xwlee/nestjs-task-management/blob/main/src/tasks/tasks.repository.ts
No branches or pull requests
This decorator of which using to create custom repositories is deprecated.
Please be aware Ariel :)
The text was updated successfully, but these errors were encountered: