Skip to content

Add context to the TypeResolutionEnvironment - #795

Merged
bbakerman merged 1 commit into
graphql-java:masterfrom
gregryork:context-type-resolution
Oct 25, 2017
Merged

bbakerman merged 1 commit into
graphql-java:masterfrom
gregryork:context-type-resolution

Conversation

@gregryork

@gregryork gregryork commented Oct 24, 2017 •

Copy link
Copy Markdown

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.

@bbakerman bbakerman left a comment

Copy link
Copy Markdown
Member

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