Question · NestJS course · Module 2: Routing and Request Lifecycle

Basics: ExecutionContext in a Guard

What does ExecutionContext provide in a guard that middleware does not have?

Answer options

  • Database access
  • File system access
  • Server configuration
  • Information about the target controller and method (handler)
Show the answer

Correct answer:

  • Information about the target controller and method (handler)