NestJS · Middle · Question 3 of 75

What is ExecutionContext used for?

Explanation

context.switchToHttp().getRequest(), context.getHandler(), context.getClass() and context.getType() are the common calls.

Further reading

Problem with a question

NestJS · Middle · question 3

Test yourself

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

Take this quiz