NestJS · Junior · Question 12 of 75

Are module providers singletons by default?

Explanation

The default scope is singleton. Request and transient scopes exist but have a performance cost.

Further reading

Problem with a question

NestJS · Junior · question 12

Test yourself

Take the NestJS · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz