NestJS · Middle · Question 16 of 75
What are the three injection scopes in Nest?
- ✓Correct answer: DEFAULT (singleton), REQUEST and TRANSIENT
- 2SYNC, ASYNC and LAZY
- 3GLOBAL, LOCAL and PRIVATE
Explanation
REQUEST creates an instance per request; TRANSIENT gives each consumer its own instance.