ChilliCream / ChilliCream/graphql-platform
[BatchResolver] hangs when parent resolver returns Task<T> with multiple parent items
Open
@michaelstaib is already working on this.
Since Jun 10, 2026.
🌶️ hot chocolate
- Dominant language
- C#
- Stars
- 5.8k
- Forks
- 810
- Avg merge
- 15h 39m
- Merged PRs (30d)
- 98
Description
Product
Hot Chocolate
Version
16.1.3
Link to minimal reproduction
https://github.com/ben-hamida/HotChocolateBatchResolverBug
Steps to reproduce
- Clone https://github.com/ben-hamida/HotChocolateBatchResolverBug
- Run dotnet run Program.cs
What is expected?
All three tests complete successfully.
What is actually happening?
Test 1 and 2 complete, Test 3 hangs indefinitely. The hang is uncancellable (CancellationToken is not respected).
Additional context
The bug requires:
- Parent resolver returning Task (async)
- Multiple parent items (2+)
- Nested [BatchResolver] on children
With a single parent item, the async resolver works correctly.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.