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

Export the Neo4jGraphQLError classes #4998

Open
AccsoSG opened this issue Apr 11, 2024 · 0 comments
Open

Export the Neo4jGraphQLError classes #4998

AccsoSG opened this issue Apr 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@AccsoSG
Copy link

AccsoSG commented Apr 11, 2024

Is your feature request related to a problem? Please describe.
Currently, the Neo4jGraphQLError classes cannot be imported into the own project.
However, it would be useful to import these classes for custom error handling.

Describe the solution you'd like
Modify the index.ts so that the error classes are also exported.

Additional context
Specifically, I would like to be able to react to the Neo4jGraphQLErrors in the request lifecycle in the Apollo server. An example would be a special logging, or a change in the HTTP status code when a certain Neo4jGraphQLError occurs.

@AccsoSG AccsoSG added the enhancement New feature or request label Apr 11, 2024
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