NestJS · Senior · Question 3 of 75

How is the DI container organized across modules?

Explanation

This encapsulation is why the same class listed in two modules' providers results in two instances.

Further reading

Problem with a question

NestJS · Senior · question 3

Test yourself

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

Take this quiz