0xPlaygrounds / 0xPlaygrounds/subgrounds

Generating typing for subgraphs

未关闭
#41 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Python
星标
73
派生
12
PR 合并指标
30 天内没有已合并 PR

描述

**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

贡献指南

打开贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
graphql, python
领域
backend-api-design, cli, tooling
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。