CodeZettaInterview Hub

NestJS · Modules · Fresh / Intern · Concept

What is a NestJS module and why does it exist?

Short Interview Answer

A class annotated with @Module that groups providers, controllers, and imports/exports — the DI boundary.

Detailed Explanation

Modules organize features and control which providers are visible. Root AppModule imports feature modules. Without modular boundaries, the DI graph becomes unmaintainable.

Did you know this answer?