Support extending interfaces
@Cito 已經在處理了。
開始於 2021年11月22日。
評估
這個 Issue 還沒有評估資料。
描述
Reporting issues with GraphQL-core 3
The GraphQL protocol already supports interfaces extending other interfaces like
interface Identifiable {
id: ID!
}
interface Resource implements Identifiable {
id: ID!
name: String!
}
type SomeResource implements Resource {
id: ID!
name: String!
}
When loading the schema we get an error
File "/usr/local/lib/python3.6/site-packages/graphql/type/validate.py", line 91, in assert_valid_schema
raise TypeError("\n\n".join(error.message for error in errors))
TypeError: Type SomeResource must implement Identifiable because it is implemented by Resource.
This can be solved by doing
type SomeResource implements Resource & Identifiable {
id: ID!
name: String
}
But its a bit annoying
- 主要語言
- Python
- 星號
- 531
- 分支
- 150
- 平均合併
- 1 天 16 小時
- 30 天內合併 PR
- 5
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
graphql-python/graphql-core 的其他 Issue
-
難度 1/5 1 小時以內 新手友好度 35/100
graphql-python/graphql-core#278 ·
-
難度 3/5 1-2 天 新手友好度 45/100
graphql-python/graphql-core#257 ·
-
難度 3/5 1-2 天 新手友好度 35/100
graphql-python/graphql-core#223 · 1 則留言 ·
-
documentation good first issue
難度 2/5 1-3 小時 新手友好度 35/100
graphql-python/graphql-core#220 · 4 則留言 ·
-
help wanted investigate
難度 4/5 3-5 天 新手友好度 35/100
graphql-python/graphql-core#217 · 8 則留言 ·
查看 graphql-python/graphql-core 的全部 Issue
相似的 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
topoteretes/cognee#5647 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 62/100
Sendspin/sendspin-python-cli#291 ·
維護者通常 6 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 72/100
awslabs/visual-asset-management-system#414 ·
維護者通常 1 天內回覆
-
bug v1 v2
難度 2/5 1-3 小時 新手友好度 75/100
modelcontextprotocol/python-sdk#3670 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
aicell-lab/bioengine#232 ·
維護者通常 1 天內回覆