-
Notifications
You must be signed in to change notification settings - Fork 1.1k
This removes the FetchedValue wrapping by default #3924
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Test Results 323 files 323 suites 3m 2s ⏱️ Results for commit 095ba62. ♻️ This comment has been updated with latest results. |
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
* | ||
* @return the object was fetched, ready to be completed as a value. | ||
*/ | ||
public Object getFetchedObject() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the hard breaking change - the new method means they HAVE to handle it should they be using the old method
if (parameters.fetchedValue instanceof FetchedValue) { | ||
FetchedValue value = (FetchedValue) parameters.fetchedValue | ||
if (parameters.getFetchedObject() instanceof FetchedValue) { | ||
FetchedValue value = (FetchedValue) parameters.getFetchedObject() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
example of hard break!
related to #3922
This removes
FetchedValue
wrapping 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
FetchedValue
to get its underlying value or to use it direct