Skip to content

Commit bdc1e7d

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

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ 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
531531
532532
The `DocumentMode` option can be used to control how the plugin will generate the document nodes.
533533
@@ -605,3 +605,7 @@ fetch('https:<your-graphql-api>', {
605605
})
606606
})
607607
```
608+
609+
### When to use a string DocumentMode?
610+
611+
The `string` DocumentMode is useful when you want to reduce the bundle size of your application as you will get string literals instead of typed ASTs. This is useful when your GraphQL client allows you to send a string literal as the query and you don't need to use the AST on the client.

0 commit comments

Comments
 (0)