ChilliCream / ChilliCream/graphql-platform

[BatchResolver] hangs when parent resolver returns Task<T> with multiple parent items

Open
#9,892 2 comments 2 reactions 1 assignee View on GitHub

@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
  1. Clone https://github.com/ben-hamida/HotChocolateBatchResolverBug
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.