0xPlaygrounds / 0xPlaygrounds/subgrounds

Generating typing for subgraphs

Open
#41 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
73
Forks
12
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
I want type information when using subgraph and fieldpath objects.

**Describe the solution you'd like**
Generating `.pyi` files for full type information, likely thru a CLI command in `contrib`.

**Describe alternatives you've considered**
- Using notebooks
- Large projects are easier with packages

**Additional context**
Likely would be a tall ordering and would only work on CLI or first time `.load_subgraph` is invoked.

**Implementation checklist**
- [ ] Task 1

Contributor guide

Open the contributing guide

Research direction

Look at the existing CLI commands in the `contrib` module and the `load_subgraph` method to understand how subgraphs and fieldpath objects are currently handled. The goal is to generate `.pyi` type stub files, which requires understanding the GraphQL schema introspection and Python's typing system. Check if there are existing tests for type generation or subgraph loading to see the expected output format.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, python
Domain
backend-api-design, cli, 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.