Skip to content

Commit d1df702

Browse files
fix(docs): correct some formatting issues
1 parent 5d36adc commit d1df702

File tree

4 files changed

+24
-25
lines changed

4 files changed

+24
-25
lines changed

content/faq/request-lifecycle.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -67,22 +67,22 @@ Filters are the only component that do not resolve global first. Instead, filter
6767
In general, the request lifecycle looks like the following:
6868

6969
1. Incoming request
70-
1. Globally bound middleware
71-
1. Module bound middleware
72-
1. Global guards
73-
1. Controller guards
74-
1. Route guards
75-
1. Global interceptors (pre-controller)
76-
1. Controller interceptors (pre-controller)
77-
1. Route interceptors (pre-controller)
78-
1. Global pipes
79-
1. Controller pipes
80-
1. Route pipes
81-
1. Route parameter pipes
82-
1. Controller (method handler)
83-
1. Service (if exists)
84-
1. Route interceptor (post-request)
85-
1. Controller interceptor (post-request)
86-
1. Global interceptor (post-request)
87-
1. Exception filters (route, then controller, then global)
88-
1. Server response
70+
2. Globally bound middleware
71+
3. Module bound middleware
72+
4. Global guards
73+
5. Controller guards
74+
6. Route guards
75+
7. Global interceptors (pre-controller)
76+
8. Controller interceptors (pre-controller)
77+
9. Route interceptors (pre-controller)
78+
10. Global pipes
79+
11. Controller pipes
80+
12. Route pipes
81+
13. Route parameter pipes
82+
14. Controller (method handler)
83+
15. Service (if exists)
84+
16. Route interceptor (post-request)
85+
17. Controller interceptor (post-request)
86+
18. Global interceptor (post-request)
87+
19. Exception filters (route, then controller, then global)
88+
20. Server response

content/fundamentals/dependency-injection.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ export class AppModule {}
8989
What exactly is happening under the covers to make this work? There are three key steps in the process:
9090

9191
1. In `cats.service.ts`, the `@Injectable()` decorator declares the `CatsService` class as a class that can be managed by the Nest IoC container.
92-
9392
2. In `cats.controller.ts`, `CatsController` declares a dependency on the `CatsService` token with constructor injection:
9493

9594
```typescript

content/graphql/federation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ import { PostsResolvers } from './posts.resolvers';
203203
export class AppModule {}
204204
```
205205

206-
##### Code first
206+
#### Code first
207207

208208
We will need to create a class representing our `User` entity. Even though it lives in another service, we will be using and extending it. Note the `@extends` and `@external` directives.
209209

content/recipes/cqrs.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
The flow of simple [CRUD](https://en.wikipedia.org/wiki/Create,_read,_update_and_delete) (Create, Read, Update and Delete) applications can be described using the following steps:
44

5-
1. The **controllers** layer handles HTTP requests and delegates tasks to the services layer.
6-
2. The **services layer** is where most of the business logic lives.
7-
3. Services use **repositories / DAOs** to change / persist entities.
8-
4. Entities act as containers for the values, with setters and getters.
5+
1. The **controllers** layer handles HTTP requests and delegates tasks to the services layer.
6+
2. The **services layer** is where most of the business logic lives.
7+
3. Services use **repositories / DAOs** to change / persist entities.
8+
4. Entities act as containers for the values, with setters and getters.
99

1010
In most cases, for small and medium-sized applications, this pattern is sufficient. However, when our requirements become more complex, the **CQRS** model may be more appropriate and scalable. To facilitate that model, Nest provides a lightweight [CQRS module](https://github.com/nestjs/cqrs). This chapter describes how to use it.
1111

0 commit comments

Comments
 (0)