NestJS · Junior · Question 11 of 75

What does @Global() on a module do?

Explanation

Use it sparingly, for things like configuration or a database connection. Explicit imports make dependencies easier to follow.

Further reading

Problem with a question

NestJS · Junior · question 11

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