Module

Decorator that marks a class as a module.

See more...


 @Module(metadata: ModuleMetadata)

Parameters

Option Type Description
metadata ModuleMetadata

module configuration metadata

Returns

ClassDecorator

See also

Description

Modules are used by Nest to organize the application structure into scopes. Controllers and Providers are scoped by the module they are declared in. Modules and their classes (Controllers and Providers) form a graph that determines how Nest performs Dependency Injection (DI).