Skip to content

feat: Support get context in error formatter #111

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 3 commits into from
Jan 30, 2018
Merged

feat: Support get context in error formatter #111

merged 3 commits into from
Jan 30, 2018

Conversation

axetroy
Copy link
Contributor

@axetroy axetroy commented Jan 23, 2018

In some cases, I need get context in error formatter.

example:

Translate error message by context.header,

If accept-language is en-US, then output English error message
if accept-language is zh-CN, then output Chiness error message

@axetroy
Copy link
Contributor Author

axetroy commented Jan 25, 2018

@chentsulin
Hey guy, can you consider merger this PR?
It's useful in case.
If something go wrong, please tell me and I will fix it.
If you don't consider this feature, I will publish antoher npm package, At least let me know.

Thanks for you time.

@chentsulin chentsulin merged commit da1ad29 into graphql-community:master Jan 30, 2018
@chentsulin
Copy link
Member

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