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

Filter Execution Order

If a filter is defined at both the method and controller level, which one is executed first?

Answer options

  • The controller filter
  • The method filter (narrowest scope)
  • Both simultaneously
  • Randomly
Show the answer

Correct answer:

  • The method filter (narrowest scope)