Explore Library
Quiz

Middleware Pipeline & Dependency Injection

Understanding how NestJS resolves middleware dependencies and where middleware runs in the request lifecycle.

You have a class-based middleware `LoggerMiddleware` that injects a request-scoped `AuthService`. Which statement is TRUE about registering it in a module's `configure(consumer: MiddlewareConsumer)` method?