Skip to content

Commit 00d5746

Browse files
committed
Add more info to the dosc
1 parent 2e99784 commit 00d5746

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

website/src/pages/plugins/presets/preset-client.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,9 @@ const nextConfig = {
527527
528528
Note that you will need to provide the `artifactDirectory` path that should be the same as the one configured in your `codegen.ts`
529529
530-
### DocumentMode
530+
## DocumentMode
531+
532+
### Optimizing bundle size with a string DocumentMode
531533
532534
The `DocumentMode` option can be used to control how the plugin will generate the document nodes.
533535
@@ -605,3 +607,7 @@ fetch('https:<your-graphql-api>', {
605607
})
606608
})
607609
```
610+
611+
### When to use a string DocumentMode?
612+
613+
The `string` DocumentMode is useful when you want to reduce the bundle size of your application. You will get string literals instead of typed ASTs on the client.

0 commit comments

Comments
 (0)