CodeZettaInterview Hub

NestJS · Dependency Injection · Fresh / Intern · Concept

How does Nest's DI container resolve dependencies?

Short Interview Answer

Reflects constructor param types/tokens, recursively constructs the provider graph within module visibility rules.

Detailed Explanation

emitDecoratorMetadata + @Injectable matter. Ambiguous types need @Inject(token).

Did you know this answer?