E533 Defer dataloader integration by felipe-gdr · Pull Request #3639 · graphql-java/graphql-java · GitHub
[go: up one dir, main page]

Skip to content

Defer dataloader integration#3639

Merged
andimarek merged 15 commits intographql-java:masterfrom
felipe-gdr:defer-dataloader-integration
Aug 29, 2024
Merged

Defer dataloader integration#3639
andimarek merged 15 commits intographql-java:masterfrom
felipe-gdr:defer-dataloader-integration

Conversation

@felipe-gdr
Copy link
Member
@felipe-gdr felipe-gdr commented Jun 20, 2024

This is a proposal for a quick and dirty solution for integrating @defer and data loaders, which will unblock further work.
This implementation will not try to optimise dispatches at all for deferred fields. It will simply always dispatch, which will inevitably result in more dispatches than necessary.
Dispatches for non-deferred fields will behave the same as before - i.e. in an optimal way.

incrementalSupport << [true, false]
}

def "chainedInstrumentation: data loader will not work with deferred queries"() {
Copy link
Member Author

Choose a reason for hiding this comment

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

Moved defer+data loader tests to its own file

}
"""

static def expectedInitialDeferredData = [
Copy link
Member Author

Choose a reason for hiding this comment

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

Moved the defer tests into their own test class

@felipe-gdr felipe-gdr marked this pull request as ready for review August 27, 2024 04:34
@andimarek andimarek added this pull request to the merge queue Aug 29, 2024
Merged via the queue into graphql-java:master with commit fde25db Aug 29, 2024
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.

4 participants

0