Support for MethodFieldResolver with only DataFetchingEnvironment.
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
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 天 5 小时
- 30 天内合并 PR
- 52
环境准备
这个项目没有提供开发容器、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 天内回复
-
bug
难度 3/5 1-2 天 新手友好度 74/100
graphql-java-kickstart/graphql-java-tools#896 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 72/100
graphql-java-kickstart/graphql-java-tools#889 ·
维护者通常 1 天内回复
-
bug
难度 3/5 1-2 天 新手友好度 55/100
graphql-java-kickstart/graphql-java-tools#886 ·
维护者通常 1 天内回复
-
enhancement
难度 3/5 1-2 天 新手友好度 72/100
graphql-java-kickstart/graphql-java-tools#884 ·
维护者通常 1 天内回复
查看 graphql-java-kickstart/graphql-java-tools 的全部 Issue
相似的 Issue
-
enhancement impact:U1 P3 reach:R2 size:S
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 73/100
ankidroid/Anki-Android#22677 ·
维护者通常 1 天内回复
-
Type Pick Request
难度 2/5 1-3 小时 新手友好度 68/100
reactwg/react-native-releases#1456 · 1 条评论 ·
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
yschimke/homeassistant-remotecompose#1038 ·
维护者通常 1 天内回复
-
area:data-quality importer size:S
难度 2/5 1-3 小时 新手友好度 84/100
enorm-labs/event-junkie#3707 ·
维护者通常 1 天内回复