Skip to content

Export the Neo4jGraphQLError classes #4998

@AccsoSG

Description

@AccsoSG

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions