Skip to content

Commit 5919096

Browse files
committed
Fixed capitalization and minor formatting issues
1 parent 2b94de6 commit 5919096

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/graphql/sharing-models.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
55
One of the biggest advantages of using Typescript for the backend of your project is the ability to reuse the same models in a Typescript-based frontend application, by using a common Typescript package.
66

7-
but there's a problem: the models created using the Code first approach are heavily decorated with graphql related decorators. Those decorators are irrelevant in the frontend, negatively impacting performance.
7+
But there's a problem: the models created using the code first approach are heavily decorated with GraphQL related decorators. Those decorators are irrelevant in the frontend, negatively impacting performance.
88

99
#### Using the model shim
1010

11-
To solve this issue, nest provides a "shim" which allows you to replace the original decorators with inert code by using a `webpack` (or similar) configuration.
11+
To solve this issue, NestJS provides a "shim" which allows you to replace the original decorators with inert code by using a `webpack` (or similar) configuration.
1212
To use this shim, configure an alias between the `@nestjs/graphql` package and the shim.
1313

1414
For example, for webpack this is resolved this way:

0 commit comments

Comments
 (0)