flâneur — a map of the web's best reading

Modules | NestJS - A progressive Node.js framework

docs.nestjs.com · 3,444 words · saved by 1 readers

A module is a class annotated with a @Module() decorator. The @Module() decorator provides metadata that Nest makes use of to organize the application structure. Each application has at least one module, a root module. The root module is the starting point Nest uses to build the application graph - the internal data structure Nest uses to resolve module and provider relationships and dependencies. While very small applications may theoretically have just the root module, this is not the typical case. We want to emphasize that modules are strongly recommended as an effective way to organize your components. Thus, for most applications, the resulting architecture will employ multiple modules, each encapsulating a closely related set of capabilities. The @Module() decorator takes a single object whose properties describe the module: The module encapsulates providers by default. This means that it's impossible to inject providers that are neither directly part of the current module nor exp

;import{$ as _e,A as Un,Aa as li,B as Vt,Ba as di,C as Yn,Ca as ci,D as tt,Da as mi,Ea as pi,F as Vn,Fa as hi,G as m,Ga as ui,H as Kn,Ha as fi,I as Qn,Ia as Ye,J as bt,Ja as St,K as W,Ka as Et,L as k,La as Ve,Ma as B,N as I,Na as xi,O as $n,Oa as gi,P as ee,Pa as bi,Q as te,Qa as j,R as yt,Ra as D,S as Ge,Sa as G,T as Ue,U as pe,V as n,W as t,X as p,Y as F,Z as L,_ as X,a as mt,aa as nt,b as Rn,ba as be,c as pt,ca as je,d as qn,da as Q,e as zn,ea as Xn,f as ht,fa as Zn,g as Fn,ga as ei,h as Je,ha as ti,i as Bn,ia as ni,j as ut,ja as b,k as Ln,ka as f,l as R,la as e,m as de,ma as ii,n as We,na

Explore this link on the map →

saved by

related reading