Skip to content

Commit f45a6ef

Browse files
2 parents 83f29cd + 089eefa commit f45a6ef

File tree

10 files changed

+353
-440
lines changed

10 files changed

+353
-440
lines changed

content/discover/who-uses.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,16 @@
161161
"logo": "/assets/logo/facile.png",
162162
"url": "https://www.facile.it",
163163
"width": "100px"
164+
},
165+
{
166+
"logo": "/assets/logo/interfacewerk.png",
167+
"url": "https://interfacewerk.de",
168+
"width": "130px"
169+
},
170+
{
171+
"logo": "/assets/logo/ottonova.png",
172+
"url": "https://www.ottonova.de",
173+
"width": "130px"
164174
}
165175
],
166176
"Body": [
@@ -207,6 +217,7 @@
207217
"https://harmonize.health",
208218
"https://accerlery.be",
209219
"https://www.facile.it",
210-
"https://shopback.com"
220+
"https://shopback.com",
221+
"https://www.ottonova.de"
211222
]
212223
}

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

content/fundamentals/lifecycle-events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In the following table, `onModuleDestroy`, `beforeApplicationShutdown` and `onAp
2222
| `beforeApplicationShutdown()`\* | Called after all `onModuleDestroy()` handlers have completed (Promises resolved or rejected);<br />once complete (Promises resolved or rejected), all existing connections will be closed (`app.close()` called). |
2323
| `onApplicationShutdown()`\* | Called after connections close (`app.close()` resolves. |
2424

25-
\* For these events, if you're not calling `app.close()` explicitly, you must opt-in to make them work with system signals such as `SIGTERM`. See [Application shutdown](#application-shutdown) below.
25+
\* For these events, if you're not calling `app.close()` explicitly, you must opt-in to make them work with system signals such as `SIGTERM`. See [Application shutdown](fundamentals/lifecycle-events#application-shutdown) below.
2626

2727
> warning **Warning** The lifecycle hooks listed above are not triggered for **request-scoped** classes. Request-scoped classes are not tied to the application lifecycle and their lifespan is unpredictable. They are exclusively created for each request and automatically garbage-collected after the response is sent.
2828

content/graphql/quick-start.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,15 @@ GraphQLModule.forRoot({
101101
}),
102102
```
103103

104+
By default, the types in the generated schema will be in the order they are defined in the included modules. To sort the schema lexicographically, set the `sortSchema` property to `true`:
105+
106+
```typescript
107+
GraphQLModule.forRoot({
108+
autoSchemaFile: join(process.cwd(), 'src/schema.gql'),
109+
sortSchema: true,
110+
}),
111+
```
112+
104113
A fully working code first sample is available [here](https://github.com/nestjs/nest/tree/master/sample/23-graphql-code-first).
105114

106115
#### Schema first

content/recipes/hot-reload.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = function(options) {
3232
watch: true,
3333
externals: [
3434
nodeExternals({
35-
whitelist: ['webpack/hot/poll?100'],
35+
allowlist: ['webpack/hot/poll?100'],
3636
}),
3737
],
3838
plugins: [
@@ -106,7 +106,7 @@ module.exports = {
106106
target: 'node',
107107
externals: [
108108
nodeExternals({
109-
whitelist: ['webpack/hot/poll?100'],
109+
allowlist: ['webpack/hot/poll?100'],
110110
}),
111111
],
112112
module: {

content/techniques/logger.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ Here we use the `get()` method on the `NestApplication` instance to retrieve the
135135

136136
You can also inject this `MyLogger` provider in your feature classes, thus ensuring consistent logging behavior across both Nest system logging and application logging. See <a href="techniques/logger#using-the-logger-for-application-logging">Using the logger for application logging</a> below for more information.
137137

138+
The only downside of this solution is that your first initialization messages won't be handled by your logger instance, though, it shouldn't really matter at this point.
139+
138140
#### Using the logger for application logging
139141

140142
We can combine several of the techniques above to provide consistent behavior and formatting across both Nest system logging and our own application event/message logging. In this section, we'll achieve this with the following steps:

0 commit comments

Comments
 (0)