You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/src/pages/plugins/presets/preset-client.mdx
+57-7
Original file line number
Diff line number
Diff line change
@@ -256,7 +256,7 @@ When dealing with nested Fragments, the `useFragment()` should also be used in a
256
256
257
257
You can find a complete working example here: [Nested Fragment example on GitHub](https://github.com/charlypoly/codegen-repros/blob/master/client-preset-nested-fragments-interface/src/App.tsx).
258
258
259
-
### Fragment Masking with @deferdirective
259
+
### Fragment Masking with @deferDirective
260
260
261
261
If you use the `@defer` directive and have a Fragment Masking setup, you can use an `isFragmentReady` helper to check if the deferred fragment data is already resolved.
262
262
The `isFragmentReady` function takes three arguments: the query document, the fragment definition, and the data returned by the
Persisted documents (often also referred to as persisted queries or persisted documents) is a technique for reducing client to server upstream traffic by sending a unique identifier instead of the full GraphQL document.
394
-
It is also commonly used to reduce the size of the client bundle as well as to improve security by preventing the client from sending and executing arbitrary GraphQL operations.
393
+
Persisted documents (often also referred to as persisted queries or persisted operations) is a technique for reducing client to server upstream traffic by sending a unique identifier instead of the full GraphQL document.
394
+
It is also commonly used to reduce the size of the client bundle as well as to improve security by preventing the client from sending and executing arbitrary GraphQL operations (and thus reducing attack surface).
395
395
396
396
<Callouttype="info">
397
397
You can find [a functional example using GraphQL Yoga within our Codegen Examples on
Urql is a popular GraphQL client that utilizes a normalized cache.
496
+
Because the client utilizes the `__typename` fields to normalize the cache, it is important that the `__typename` field is included in the persisted documents.
497
+
The `addTypenameSelectionDocumentTransform` document transform can be used for achieving this.
0 commit comments