Question: Resolver Execution Order
- 主要语言
- Go
- 星标
- 10.8k
- 派生
- 1.3k
- 平均合并
- 2 天 36 分钟
- 30 天内合并 PR
- 26
描述
Hey team, is there a way to execute the parent resolver in parallel with the children resolver?
### What happened?
**Resolver**
```
ParentA:
fields:
ChildA:
resolver: true
ChildB:
resolver: true
```
Currently the execution order is:
- ParentA
- ChildA
- ChildB
I would like the execution order to be:
- ParentA
- ChildA
- ChildB
Is this possible?
### What did you expect?
### Minimal graphql.schema and models to reproduce
### versions
- `go run github.com/99designs/gqlgen version`?
- `go version`?
贡献指南
调研方向
查看 gqlgen 代码库中的 resolver 执行逻辑,可能位于 execution 或 resolver 包中。了解当前父 resolver 和子 resolver 的执行顺序。检查是否已有并发或并行执行模式。目标是修改执行顺序,使父 resolver 和子 resolver 能够并行运行,这需要深入理解 GraphQL 执行过程和 gqlgen 的内部实现。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- go, graphql
- 领域
- api, backend
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100