Support for MethodFieldResolver with only DataFetchingEnvironment.
維護者通常 1 天內回覆
評估
研究方向
Start by locating the MethodFieldResolver entry point and reading how it currently matches resolver method parameters, especially DataFetchingEnvironment. Done means methods shaped like method (is|get|getField)?<Name>(*fieldArgs, DataFetchingEnvironment) are supported, while existing resolver forms continue to work.
由索引模型根據 Issue 內容生成。
描述
- method
<name>(object, *fieldArgs [, DataFetchingEnvironment]) - method
is<Name>(object, *fieldArgs [, DataFetchingEnvironment]), only if the field returns a Boolean - method
get<Name>(object, *fieldArgs [, DataFetchingEnvironment]) - method
getField<Name>(object, *fieldArgs [, DataFetchingEnvironment]) - field
<name>
Currently only the above fieldResolvers are supported.
But there are use cases where are in using local context would be the only requirement.
Can methods with the following definition be supported?
method (is|get|getField)?<Name>(*fieldArgs, DataFetchingEnvironment) is supported.
The following hypothetical example shows that while loading imageBlob, we would want to know just the type of files supported. Since the parent of imageBlob is the image this data won't be available. Just the localContext is needed. In these cases, there is only need for DataFetchingEnvironment. So support for the above mentioned methodResolver would be cleaner.
type Folder {
supportedFileTypes: [String!]!
images: [Image!]!
}
type Image {
imageBlob: String
}
- 主要語言
- Kotlin
- 星號
- 824
- 分支
- 175
- 平均合併
- 2 天 1 小時
- 30 天內合併 PR
- 59
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
graphql-java-kickstart/graphql-java-tools 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 85/100
graphql-java-kickstart/graphql-java-tools#893 ·
維護者通常 1 天內回覆
-
enhancement
難度 5/5 一週以上 新手友好度 35/100
graphql-java-kickstart/graphql-java-tools#905 ·
維護者通常 1 天內回覆
-
難度 3/5 1-2 天 新手友好度 48/100
graphql-java-kickstart/graphql-java-tools#900 ·
維護者通常 1 天內回覆
-
難度 3/5 1-2 天 新手友好度 72/100
graphql-java-kickstart/graphql-java-tools#889 ·
維護者通常 1 天內回覆
-
enhancement
難度 3/5 1-2 天 新手友好度 72/100
graphql-java-kickstart/graphql-java-tools#884 ·
維護者通常 1 天內回覆
查看 graphql-java-kickstart/graphql-java-tools 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
getdictus/dictus-android#187 ·
維護者通常 1 天內回覆
-
documentation follow-up
難度 1/5 1 小時以內 新手友好度 84/100
維護者通常 1 天內回覆
-
follow-up
難度 1/5 1 小時以內 新手友好度 83/100
yschimke/meshcore-mobile#586 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
Kotlin/kotlinx-io#529 ·
-
難度 2/5 1-3 小時 新手友好度 70/100
mcnaveen/health-connect-webhook#110 ·
維護者通常 1 天內回覆