Khan / Khan/genqlient

Allow __all to request all fields

Open
#27 6 comments 1 reaction 0 assignees View on GitHub
enhancement needs use cases
Dominant language
Go
Stars
1.3k
Forks
143
Avg merge
4h 50m
Merged PRs (30d)
1

Description

A fun thing we can do, because we generate code, is to allow you to put in a pseudo-field like `__all`, which we expand to all the fields. That's probably a terrible idea, both in that it diverges from the spec, and you shouldn't want to do that, but we could do it anyway! And it would be useful especially for tests.

Contributor guide

Open the contributing guide

Research direction

The issue names no implementation files or tests. Start by tracing how GraphQL field selections are expanded during code generation, then determine how a __all selection should identify every field without violating existing behavior. Done means __all expands to all fields and the behavior is covered by tests, especially the stated test use case.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, graphql
Domain
backend-api-design, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.