File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
website/src/pages/plugins/presets Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -491,6 +491,29 @@ console.log(response.status)
491
491
console .log (await response .json ())
492
492
```
493
493
494
+ ### Hashing algorithm
495
+
496
+ To override the default hash algorithm of sha1 set ` persistedDocuments.hashAlgorithm `
497
+
498
+ ``` ts filename="codegen.ts" {10-12}
499
+ import { type CodegenConfig } from ' @graphql-codegen/cli'
500
+
501
+ const config: CodegenConfig = {
502
+ schema: ' schema.graphql' ,
503
+ documents: [' src/**/*.tsx' ],
504
+ generates: {
505
+ ' ./src/gql/' : {
506
+ preset: ' client' ,
507
+ presetConfig: {
508
+ persistedDocuments: {
509
+ hashAlgorithm: ' sha256'
510
+ }
511
+ }
512
+ }
513
+ }
514
+ }
515
+ ```
516
+
494
517
### Normalized Caches (urql and Apollo Client)
495
518
496
519
Urql is a popular GraphQL client that utilizes a normalized cache.
You can’t perform that action at this time.
0 commit comments