Skip to content
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

Better runtime error handling #158

Open
MichalLytek opened this issue Sep 26, 2018 · 0 comments
Open

Better runtime error handling #158

MichalLytek opened this issue Sep 26, 2018 · 0 comments
Labels
Enhancement 🆕 New feature or request
Milestone

Comments

@MichalLytek
Copy link
Owner

MichalLytek commented Sep 26, 2018

I like the idea presented in graphql-errors library, where runtime errors are captured and replaced with UUID to prevent data leaks:
https://github.com/kadirahq/graphql-errors

Direct integration with this library might not be a good idea as its outdated but I think that the source code is simple and I can reimplement it in TypeGraphQL with better API that would allow to enable/disable it per type or field and pass custom mask function in decorators.
https://github.com/kadirahq/graphql-errors/blob/master/lib/index.js

@MichalLytek MichalLytek added the Enhancement 🆕 New feature or request label Sep 26, 2018
@MichalLytek MichalLytek added this to the Future release milestone Sep 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement 🆕 New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant