This removes the FetchedValue wrapping by default#3924
Merged
Conversation
Contributor
Test Results 323 files 323 suites 3m 2s ⏱️ Results for commit 095ba62. ♻️ This comment has been updated with latest results. |
Member
Author
|
Manually run JMH tests It definitely helped in using less memory. Interestingly the gc.time went up - not sure how to read that |
…wrapping # Conflicts: # src/main/java/graphql/execution/ExecutionStrategy.java # src/main/java/graphql/execution/SubscriptionExecutionStrategy.java
bbakerman
commented
Jul 8, 2025
| * | ||
| * @return the object was fetched, ready to be completed as a value. | ||
| */ | ||
| public Object getFetchedObject() { |
Member
Author
There was a problem hiding this comment.
This is the hard breaking change - the new method means they HAVE to handle it should they be using the old method
bbakerman
commented
Jul 8, 2025
| if (parameters.fetchedValue instanceof FetchedValue) { | ||
| FetchedValue value = (FetchedValue) parameters.fetchedValue | ||
| if (parameters.getFetchedObject() instanceof FetchedValue) { | ||
| FetchedValue value = (FetchedValue) parameters.getFetchedObject() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
related to #3922
This removes
FetchedValuewrapping of every value we get back from a DataFetcherThis only wraps it in a FetchedValue if the DF returned the complex
graphql.execution.DataFetcherResult.The consuming code now needs to tests if its a
FetchedValueto get its underlying value or to use it direct