Skip to content

Commit c8c6075

Browse files
committed
Fix formatting
1 parent 05adb3f commit c8c6075

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ const response = await fetch('http://yoga/graphql', {
490490
console.log(response.status)
491491
console.log(await response.json())
492492
```
493+
493494
To override the default hash algorithm of sha1 set `persistedDocuments.hashAlgorithm`
494495

495496
```ts filename="codegen.ts" {10-12}
@@ -503,13 +504,14 @@ const config: CodegenConfig = {
503504
preset: 'client',
504505
presetConfig: {
505506
persistedDocuments: {
506-
hashAlgorithm: 'sha256',
507-
},
507+
hashAlgorithm: 'sha256'
508+
}
508509
}
509510
}
510511
}
511512
}
512513
```
514+
513515
### Normalized Caches (urql and Apollo Client)
514516

515517
Urql is a popular GraphQL client that utilizes a normalized cache.

0 commit comments

Comments
 (0)