make dataloader work inside defer blocks by andimarek · Pull Request #3980 · graphql-java/graphql-java · GitHub
Skip to content

make dataloader work inside defer blocks#3980

Merged
andimarek merged 15 commits into
masterfrom
defer-dataloader
May 26, 2025
Merged

make dataloader work inside defer blocks#3980
andimarek merged 15 commits into
masterfrom
defer-dataloader

Conversation

@andimarek

Copy link
Copy Markdown
Member

No description provided.

@github-actions

github-actions Bot commented May 22, 2025

Copy link
Copy Markdown
Contributor

Comment thread src/main/java/graphql/execution/incremental/DeferredCallContext.java Outdated
Comment thread src/main/java/graphql/schema/DataFetchingEnvironmentImpl.java Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: "the"

@andimarek andimarek merged commit 6e9e023 into master May 26, 2025
2 checks passed
@dondonz dondonz deleted the defer-dataloader branch August 15, 2025 06:14
timward60 added a commit to timward60/graphql-java that referenced this pull request Feb 17, 2026
Use mergedFields.size() (per-fragment field count) instead of
deferredFields.size() (total across all fragments) when constructing
AlternativeCallContext. The inflated count prevented dispatch strategies
from ever triggering dispatch since each fragment only fetches its own
fields.

Fixes the bug introduced in graphql-java#3980.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants