You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed that the output typing don't seem to be automatically generated when using the TS plugin inside VSCode unless one restarts TypeScript in the IDE after every change to the schema.
In terms of reproduction, please follow the below steps:
Download the example-pokemon-api directory from the master branch of this repo
Navigate to the example-pokemon-api directory and run npm install
Open said directory with VSCode
Ensure you accept the prompt to use the workspace's version of TypeScript
Modify example-pokemon-api/schema.graphql (either from within VSCode or using an external editor) e.g. add a field abc to the Attack type
Observe that there is no abc field on the Attack type in example-pokemon-api/src/graphql-env.d.ts
Restart TypeScript in VSCode
Observe that the abc field on the Attack type in example-pokemon-api/src/graphql-env.d.ts is now present
Note that the version of gql.tada in the example directory is an older version (1.6.0). I also (locally) upgraded it to 1.8.10 and updated the tsconfig according to your docs, but the problem persists.
Details of VSCode / environment in case it's useful for reproduction:
Version: 1.96.2 (Universal)
Commit: fabdb6a30b49f79a7aba0f2ad9df9b399473380f
Date: 2024-12-19T10:22:47.216Z (3 wks ago)
Electron: 32.2.6
ElectronBuildId: 10629634
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Darwin arm64 22.6.0
Reproduction
See above
gql.tada version
Reproduced on both 1.8.10 and 1.6.0
Validations
I can confirm that this is a bug report, and not a feature request, RFC, question, or discussion, for which GitHub Discussions should be used
Greetings!
I've noticed that the output typing don't seem to be automatically generated when using the TS plugin inside VSCode unless one restarts TypeScript in the IDE after every change to the schema.
In terms of reproduction, please follow the below steps:
example-pokemon-api
directory and runnpm install
example-pokemon-api/schema.graphql
(either from within VSCode or using an external editor) e.g. add a fieldabc
to theAttack
typeabc
field on theAttack
type inexample-pokemon-api/src/graphql-env.d.ts
abc
field on theAttack
type inexample-pokemon-api/src/graphql-env.d.ts
is now presentNote that the version of gql.tada in the example directory is an older version (1.6.0). I also (locally) upgraded it to 1.8.10 and updated the tsconfig according to your docs, but the problem persists.
Details of VSCode / environment in case it's useful for reproduction:
Version: 1.96.2 (Universal)
Commit: fabdb6a30b49f79a7aba0f2ad9df9b399473380f
Date: 2024-12-19T10:22:47.216Z (3 wks ago)
Electron: 32.2.6
ElectronBuildId: 10629634
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Darwin arm64 22.6.0
Reproduction
See above
gql.tada version
Reproduced on both 1.8.10 and 1.6.0
Validations
The text was updated successfully, but these errors were encountered: