ardatan / ardatan/graphql-mesh
Feature request: specify configName for input when generating TypeScript types
- Dominant language
- TypeScript
- Stars
- 3.5k
- Forks
- 363
- Avg merge
- 6h 10m
- Merged PRs (30d)
- 19
Description
It would be great if we could specify which configuration file we want to make use of when generating TypeScript types through the cli, e.g.:
"graphql-mesh typescript --input ./src/graphql/devconfigrc.yml --output ./src/graphql/mesh/__generated__/types.tsx"
That way we could easily switch between e.g. development and production and generate types based on the environment we need types for
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the `graphql-mesh typescript` CLI command and how it currently selects its configuration. Verify the requested `--input` behavior by generating TypeScript types from separate development and production configuration files, with completion shown by output reflecting the selected file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, typescript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100