apollographql / apollographql/apollo-tooling
Codegen: Also generate a definition file for .graphql fils
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 460
- PR merge metrics
- No merged PRs in 30d
Description
Similar to [typed-css-modules ](https://github.com/Quramy/typed-css-modules) the codegen can generate declaration files for existing query files that has list of exported queries and mutations.
This will help TypeScript enforce correct names when importing queries from `.graphql` file using `"graphql-tag/loader"`.
Contributor guide
Research direction
Start by locating the codegen entry point that processes existing .graphql query files and review how generated outputs are named. Define the declaration-file output for exported queries and mutations, then verify that TypeScript can enforce valid imports through graphql-tag/loader. The issue names no specific files or tests, so the repository’s codegen and test structure will need to be mapped first.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, typescript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100