Skip to content

Commit 386ce23

Browse files
docs(): update wording
1 parent 160bd3d commit 386ce23

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

content/graphql/migration.md

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

33
This article provides a set of guidelines for migrating from `@nestjs/graphql` version 9 to version 10. The focus of this major-version release is to provide a lighter, platform-agnostic core library.
44

5-
#### New "driver" packages
5+
#### Introducing "driver" packages
66

77
In the latest version, we made a decision to break the `@nestjs/graphql` package up into a few separate libraries, letting you choose whether to use Apollo (`@nestjs/apollo`), Mercurius (`@nestjs/mercurius`), or another GraphQL library in your project.
88

@@ -107,7 +107,7 @@ export function upperDirectiveTransformer(
107107
}
108108
```
109109

110-
In order to apply this directive implementation to a schema that contains `@upper` directives, use the `transformSchema` function:
110+
To apply this directive implementation to a schema that contains `@upper` directives, use the `transformSchema` function:
111111

112112
```typescript
113113
GraphQLModule.forRoot<ApolloDriverConfig>({

src/app/homepage/pages/microservices/custom-transport/custom-transport.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ <h4 appAnchor id="message-serialization"><span>Message serialization</span></h4>
197197
<p>If you need to add some custom logic around the serialization of responses on the client side, you can use a custom class that extends the <code>ClientProxy</code> class or one of its child classes. For modifying successful requests you can override the <code>serializeResponse</code> method, and for modifying any errors that go through this client you can override the <code>serializeError</code> method. To make use of this custom class, you can pass the class itself to the <code>ClientsModule.register()</code> method using the <code>customClass</code> property. Below is an example of a custom <code>ClientProxy</code> that serializes each error into an <code>RpcException</code>.</p>
198198

199199
<span class="filename">
200-
{{ 'error-handling.proxy' | extension: app085b7b6d90d47f62a29324632919f1e4ea3cfccd.isJsActive }}
201-
<app-tabs #app085b7b6d90d47f62a29324632919f1e4ea3cfccd></app-tabs>
200+
{{ 'error-handling.proxy' | extension: app3de1ecb0a9123af2e18ea330c3a1928fa2d69e87.isJsActive }}
201+
<app-tabs #app3de1ecb0a9123af2e18ea330c3a1928fa2d69e87></app-tabs>
202202
</span><pre><code class="language-typescript">
203203
import &#123; ClientTcp, RpcException &#125; from &#39;@nestjs/microservices&#39;;
204204

@@ -210,8 +210,8 @@ <h4 appAnchor id="message-serialization"><span>Message serialization</span></h4>
210210
</code></pre><p>and then use it in the <code>ClientsModule</code> like so:</p>
211211

212212
<span class="filename">
213-
{{ 'app.module' | extension: app8661dbbcc4d35ee5be074ad0087f9665250f677c.isJsActive }}
214-
<app-tabs #app8661dbbcc4d35ee5be074ad0087f9665250f677c></app-tabs>
213+
{{ 'app.module' | extension: app40b69025f90603ae774160237ce9e87b7cf53a3b.isJsActive }}
214+
<app-tabs #app40b69025f90603ae774160237ce9e87b7cf53a3b></app-tabs>
215215
</span><pre><code class="language-typescript">
216216
@Module(&#123;
217217
imports: [

0 commit comments

Comments
 (0)