NestJS · Junior · Question 10 of 75

OrdersModule needs UsersService from UsersModule. What must be true?

Explanation

Listing UsersService in OrdersModule.providers would create a second, separate instance. Export and import share the same one.

Further reading

Problem with a question

NestJS · Junior · question 10

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