Skip to content

Commit

Permalink
Remove note and inline with comment
Browse files Browse the repository at this point in the history
Co-authored-by: Lenz Weber-Tronic <[email protected]>
  • Loading branch information
jerelmiller and phryneas authored Dec 3, 2024
1 parent c35b393 commit 41ae73c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docs/source/data/fragments.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1097,14 +1097,11 @@ type GetCurrentUserQuery = {
currentUser: {
__typename: "User";
id: string;
// omitted: additional internal metadata
} | null
}
```
<Note>
GraphQL Codegen generates masked types with additional meta information on the type that is omitted in this example.
</Note>
#### Generating masked types
You generate masked types with either the [`typescript-operations` plugin](https://the-guild.dev/graphql/codegen/plugins/typescript/typescript-operations) or the [client preset](https://the-guild.dev/graphql/codegen/plugins/presets/preset-client). You can choose to generate masked types at any stage in the adoption process, even before you've enabled `dataMasking` in your client instance. Until you [opt in to use masked types](#opting-in-to-use-masked-types), the client will unwrap them and provide the full operation type.
Expand Down

0 comments on commit 41ae73c

Please sign in to comment.