Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@bbakerman
Copy link
Member

We can today make a Map<String,Object> from an ExecutionResult but we can do the opposite

I needed to to this in some client reading HTTP graphql response code and making a ER was difficult and should be in graphql-java so here it is

@bbakerman bbakerman added this to the 23.x breaking changes milestone Feb 13, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2025

Test Results

  306 files    306 suites   47s ⏱️
3 488 tests 3 483 ✅ 5 💤 0 ❌
3 577 runs  3 572 ✅ 5 💤 0 ❌

Results for commit 9c04196.

♻️ This comment has been updated with latest results.

*
* @return a new {@link ExecutionResult} from that map
*/
static ExecutionResult fromSpecification(Map<String, Object> specificationMap) {
Copy link
Member Author

Choose a reason for hiding this comment

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

naming is the opposite of toSpecification

*
* @return a {@link GraphQLError}
*/
static GraphQLError fromSpecification(Map<String, Object> specificationMap) {
Copy link
Member Author

Choose a reason for hiding this comment

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

naming is the opposite of toSpecification

Copy link
Member Author

Choose a reason for hiding this comment

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

impl in internal class

@bbakerman bbakerman requested a review from dondonz February 13, 2025 04:55
Copy link
Member

@dondonz dondonz left a comment

Choose a reason for hiding this comment

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

Looks good!

@bbakerman bbakerman merged commit fc9c133 into master Feb 16, 2025
2 checks passed
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