Skip to content

How to get ExecutionContext in current version? #2956

Answered by bbakerman
CH-EricLundberg asked this question in Q&A
Discussion options

You must be logged in to vote

This was useful when you wanted to insert a GraphqlError into the result but still return some data

use graphql.execution.DataFetcherResult - this allows you to return data, errors and also local context.

https://www.graphql-java.com/documentation/execution#returning-data-and-errors

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by CH-EricLundberg
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants