Click in order · NestJS course · Module 1: NestJS Basics

Additional: Request Lifecycle in NestJS

Arrange the elements of the HTTP request lifecycle in NestJS in the correct order:

Items to click

  • Middleware
  • Guards
  • Route Handler (controller method)
  • Interceptors (before)
Show the answer

Correct order:

  1. Middleware
  2. Guards
  3. Interceptors (before)
  4. Route Handler (controller method)