Which packages are impacted by your issue?
@graphql-codegen/cli, @graphql-codegen/add, @graphql-codegen/typescript-operations, @graphql-codegen/typescript
Describe the bug
https://codesandbox.io/p/sandbox/fragrant-dream-4q295n
please check codegen.ts and the generated types.ts
p.s. kudos to the one who created that minimal reproduction template(s)
Your Example Website or App
https://codesandbox.io/p/sandbox/fragrant-dream-4q295n
Steps to Reproduce the Bug or Issue
as described
Expected behavior
as described
Screenshots or Videos
No response
Platform
- OS: [e.g. macOS, Windows, Linux]
- NodeJS: [e.g. 18.5.0]
graphql version: [e.g. 16.3.0]
@graphql-codegen/* version(s): [e.g. 2.6.2]
Codegen Config File
No response
Additional context
No response