NestJS · Junior · Question 23 of 75
What is a provider in Nest?
- 1A database driver only
- 2An HTTP server
- ✓Correct answer: A class or value that can be injected as a dependency, most often a service marked
@Injectable()
Explanation
Services, repositories, factories and helpers are providers. The DI container creates them and passes them where needed.