Skip to content

Commit 4243d0d

Browse files
committed
Format and fix grammar issues
1 parent 54a733e commit 4243d0d

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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 focuses on only generating types and doesn't include additional runtime code. Follow the steps in the preceding section to use a setup that includes this plugin.
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

@@ -151,17 +151,17 @@ const config: CodegenConfig = {
151151
"./src/types/__generated__/graphql.ts": {
152152
plugins: ["typescript-operations"],
153153
config: {
154-
// Generates the Enums and Input types used in operation variables.
155-
// These types are imported into near-operation files generated by the config below.
156-
generateOperationTypes: false
157-
}
154+
// Generates the enum and input types used in operation variables.
155+
// The files generated from the config below import these types into near-operation files.
156+
generateOperationTypes: false,
157+
},
158158
},
159159
"./src/": {
160160
preset: "near-operation-file",
161161
plugins: ["typescript-operations"],
162162
// Note: these config options moved from the other generated file config
163163
config: {
164-
// This is the file generated by the "typescript-operations" plugin above,
164+
// This is the file generated by the `typescript-operations` plugin above,
165165
// relative to the current working directory.
166166
importSchemaTypesFrom: "./src/types/__generated__/graphql.ts",
167167
// Apollo Client always includes `__typename` fields
@@ -239,17 +239,17 @@ const config: CodegenConfig = {
239239
"./src/types/__generated__/graphql.ts": {
240240
plugins: ["typescript-operations"],
241241
config: {
242-
// Generates the Enums and Input types used in operation variables.
243-
// These types are imported into near-operation files generated by the config below.
244-
generateOperationTypes: false
245-
}
242+
// Generates the enum and input types used in operation variables.
243+
// The files generated from the config below import these types into near-operation files.
244+
generateOperationTypes: false,
245+
},
246246
},
247247
"./src/": {
248248
preset: "near-operation-file",
249249
plugins: ["typescript-operations", "typed-document-node"],
250250
// Note: these config options moved from the other generated file config
251251
config: {
252-
// This is the file generated by the "typescript-operations" plugin above,
252+
// This is the file generated by the `typescript-operations` plugin above,
253253
// relative to the current working directory.
254254
importSchemaTypesFrom: "./src/types/__generated__/graphql.ts",
255255
// Apollo Client always includes `__typename` fields

0 commit comments

Comments
 (0)