Skip to content

Commit e9cb53a

Browse files
Merge pull request #1333 from jmcdo29/middleware-execution
docs(request-lifecycle): adds information about module bound mw
2 parents d9ec49c + a0eb009 commit e9cb53a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/faq/request-lifecycle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Nest applications handle requests and produce responses in a sequence we refer t
44

55
#### Middleware
66

7-
Middleware is executed in a particular sequence. First, Nest runs globally bound middleware (such as middleware bound with `app.use`) and then it runs [module bound middleware](/middleware), which are determined on paths. Middleware are run sequentially in the order they are bound, similar to the way middleware in Express works.
7+
Middleware is executed in a particular sequence. First, Nest runs globally bound middleware (such as middleware bound with `app.use`) and then it runs [module bound middleware](/middleware), which are determined on paths. Middleware are run sequentially in the order they are bound, similar to the way middleware in Express works. In the case of middleware bound across different modules, the middleware bound to the root module will run first, and then middleware will run in the order that the modules are added to the imports array.
88

99
#### Guards
1010

0 commit comments

Comments
 (0)