Skip to content

Add context to the TypeResolutionEnvironment #795

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

Merged
merged 1 commit into from
Oct 25, 2017

Conversation

gregryork
Copy link
Contributor

@gregryork gregryork commented Oct 24, 2017

For a project we are working on it is useful to have the type resolvers have access to the context. As an example think of our data being a numerical ID that represents a person (interface type). That person can be an employee type or a customer type, and that needs to have access to the context to resolve which it is.

Copy link
Member

@bbakerman bbakerman left a comment

Choose a reason for hiding this comment

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

Thanks for this

@bbakerman bbakerman merged commit ecc3b26 into graphql-java:master Oct 25, 2017
@bbakerman bbakerman added this to the 6.0 milestone Oct 25, 2017
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.

2 participants