Skip to content

Commit 674c2e5

Browse files
committed
Change headlines
1 parent ae41553 commit 674c2e5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docs/source/development-testing/static-typing.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ GraphQL uses a type system to clearly define the available data for each type an
99

1010
We'll guide you through installing and configuring GraphQL Code Generator to generate types for your GraphQL operations.
1111

12-
## Setting up your project
12+
## Setting up your project with GraphQL Codegen
1313

1414
Install the following packages. This installation assumes you already have [installed `@apollo/client` and its dependencies](../get-started#step-2-install-dependencies).
1515

1616
```bash
1717
npm install -D @graphql-codegen/cli @graphql-codegen/typescript @graphql-codegen/typescript-operations
1818
```
1919

20+
### Recommended starter configuration
21+
2022
Next, we'll create a configuration file for GraphQL Code Generator, named [`codegen.ts`](https://www.the-guild.dev/graphql/codegen/docs/config-reference/codegen-config), at the root of our project. The following is a recommended minimal configuration for Apollo Client apps.
2123

2224
```ts title="codegen.ts"
@@ -79,7 +81,7 @@ $ npm run codegen
7981
✔ Generate outputs
8082
```
8183

82-
### The `client` preset
84+
### A note about the `client` preset
8385

8486
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).
8587

0 commit comments

Comments
 (0)