apollographql / apollographql/apollo-tooling

Apollo codegen should create an empty variables interface for queries with no variables

Open
#1,472 1 comment 2 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.