apollographql / apollographql/apollo-tooling
Apollo codegen should create an empty variables interface for queries with no variables
Open
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 460
- PR merge metrics
- No merged PRs in 30d
Description
**Intended outcome:**
When we have queries that don't use variables, we should have an empty interface. We can then use that interface, even if it's empty, in the variables generic for all apollo fetch methods.
Contributor guide
Research direction
The issue does not name any files, tests, or entry points. Start by locating the Apollo codegen path that creates TypeScript variables types for queries, then verify generated output for a query without variables and confirm that an empty interface is emitted and usable by Apollo fetch methods.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, typescript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100