NestJS · Senior · Question 63 of 75

What does app.useGlobalInterceptors() NOT give you compared to APP_INTERCEPTOR?

Explanation

Instances passed to useGlobal* are created outside the container.

Further reading

Problem with a question

NestJS · Senior · question 63

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