Skip to content

Commit b94fa4b

Browse files
committed
Format and fix grammar issues
1 parent c32b8b0 commit b94fa4b

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

docs/source/development-testing/graphql-codegen.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This article covers GraphQL Codegen installation and configuration. If you'd lik
2020
Install the following packages. This installation assumes you already have [installed `@apollo/client` and its dependencies](../get-started#step-2-install-dependencies).
2121

2222
```bash
23-
npm install -D @graphql-codegen/cli @graphql-codegen/typescript-operations
23+
`npm install -D @graphql-codegen/cli @graphql-codegen/typescript-operations`
2424
```
2525

2626
### Recommended starter configuration
@@ -83,7 +83,7 @@ $ npm run codegen
8383

8484
If you follow GraphQL Codegen's [quickstart guide](https://the-guild.dev/graphql/codegen/docs/getting-started/installation), it recommends generating your config file using the GraphQL Code Generator CLI. This wizard installs and configures the [`@graphql-codegen/client-preset`](https://the-guild.dev/graphql/codegen/plugins/presets/preset-client).
8585

86-
We do not recommend using the client preset with Apollo Client apps because it generates additional runtime code that adds bundle size to your application and includes features that are incompatible with Apollo Client. Instead, we recommend using the [`typescript-operations`](https://the-guild.dev/graphql/codegen/plugins/typescript/typescript-operations) plugins directly (at minimum), which focus on only generating types and don't include additional runtime code. Follow the steps in the preceding section to use a setup that includes these plugins.
86+
We do not recommend using the client preset with Apollo Client apps because it generates additional runtime code that adds bundle size to your application and includes features that are incompatible with Apollo Client. Instead, we recommend using the [`typescript-operations`](https://the-guild.dev/graphql/codegen/plugins/typescript/typescript-operations) plugin directly (at minimum), which focus on only generating types and don't include additional runtime code. Follow the steps in the preceding section to use a setup that includes these plugins.
8787

8888
If you're already using the client preset, or you choose to use it instead of working directly with the plugins, we recommend the following minimal configuration for Apollo Client apps.
8989

@@ -153,8 +153,8 @@ const config: CodegenConfig = {
153153
config: {
154154
// Generates the Enums and Input types used in operation variables.
155155
// These types are imported into near-operation files generated by the config below.
156-
generateOperationTypes: false
157-
}
156+
generateOperationTypes: false,
157+
},
158158
},
159159
"./src/": {
160160
preset: "near-operation-file",
@@ -241,8 +241,8 @@ const config: CodegenConfig = {
241241
config: {
242242
// Generates the Enums and Input types used in operation variables.
243243
// These types are imported into near-operation files generated by the config below.
244-
generateOperationTypes: false
245-
}
244+
generateOperationTypes: false,
245+
},
246246
},
247247
"./src/": {
248248
preset: "near-operation-file",

0 commit comments

Comments
 (0)