Skip to content

Commit 0e88d2e

Browse files
Merge pull request #1677 from Tony133/docs/recipe-mongoose
docs(mongoose): fix warning and hint
2 parents b573f86 + 6d02791 commit 0e88d2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/recipes/mongodb.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export const catsProviders = [
9797
];
9898
```
9999

100-
> **Notice** In the real-world applications you should avoid **magic strings**. Both `CAT_MODEL` and `DATABASE_CONNECTION` should be kept in the separated `constants.ts` file.
100+
> warning **Warning** In the real-world applications you should avoid **magic strings**. Both `CAT_MODEL` and `DATABASE_CONNECTION` should be kept in the separated `constants.ts` file.
101101
102102
Now we can inject the `CAT_MODEL` to the `CatsService` using the `@Inject()` decorator:
103103

@@ -180,4 +180,4 @@ import { DatabaseModule } from '../database/database.module';
180180
export class CatsModule {}
181181
```
182182

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

0 commit comments

Comments
 (0)