You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/recipes/mongodb.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,7 @@ export const catsProviders = [
97
97
];
98
98
```
99
99
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.
101
101
102
102
Now we can inject the `CAT_MODEL` to the `CatsService` using the `@Inject()` decorator:
103
103
@@ -180,4 +180,4 @@ import { DatabaseModule } from '../database/database.module';
180
180
exportclassCatsModule {}
181
181
```
182
182
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