Skip to content

Commit 472dc42

Browse files
committed
docs(typeorm): fix warning and hint
1 parent e319015 commit 472dc42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/recipes/sql-typeorm.md

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

33
##### This chapter applies only to TypeScript
44

5-
> **Warning** In this article, you'll learn how to create a `DatabaseModule` based on the **TypeORM** package from scratch using custom providers mechanism. As a consequence, this solution contains a lot of overhead that you can omit using ready to use and available out-of-the-box dedicated `@nestjs/typeorm` package. To learn more, see [here](/techniques/sql).
5+
> warning **Warning** In this article, you'll learn how to create a `DatabaseModule` based on the **TypeORM** package from scratch using custom providers mechanism. As a consequence, this solution contains a lot of overhead that you can omit using ready to use and available out-of-the-box dedicated `@nestjs/typeorm` package. To learn more, see [here](/techniques/sql).
66
77
[TypeORM](https://github.com/typeorm/typeorm) is definitely the most mature Object Relational Mapper (ORM) available in the node.js world. Since it's written in TypeScript, it works pretty well with the Nest framework.
88

@@ -107,7 +107,7 @@ export const photoProviders = [
107107
];
108108
```
109109

110-
> warning **Notice** In the real-world applications you should avoid **magic strings**. Both `PHOTO_REPOSITORY` and `DATABASE_CONNECTION` should be kept in the separated `constants.ts` file.
110+
> warning **Warning** In the real-world applications you should avoid **magic strings**. Both `PHOTO_REPOSITORY` and `DATABASE_CONNECTION` should be kept in the separated `constants.ts` file.
111111
112112
Now we can inject the `Repository<Photo>` to the `PhotoService` using the `@Inject()` decorator:
113113

@@ -151,4 +151,4 @@ import { PhotoService } from './photo.service';
151151
export class PhotoModule {}
152152
```
153153

154-
> warning **Hint** Do not forget to import the `PhotoModule` into the root `ApplicationModule`.
154+
> info **Hint** Do not forget to import the `PhotoModule` into the root `ApplicationModule`.

0 commit comments

Comments
 (0)