0xPlaygrounds / 0xPlaygrounds/subgrounds
Generating typing for subgraphs
- Ngôn ngữ chính
- Python
- Star
- 73
- Fork
- 12
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
**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
Hướng dẫn đóng góp
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- graphql, python
- Lĩnh vực
- backend-api-design, cli, tooling
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100