NestJS - Database with TypeORM
Which of the following is the correct way to inject a repository in a NestJS service using TypeORM?
@InjectRepository() is used to inject repositories.@InjectRepository(User) which is the official and correct syntax.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions