Currently, it's not possible to create an instance of GraphQLError in a dependent package for testing such that it can utilize the helper functions (i.e. IsUnauthorizedError) because the error field is not accessible. With this change, packages that depend on this module can create an instance of GraphQLError to be able to assert specific error conditions.
Currently, it's not possible to create an instance of
GraphQLError
in a dependent package for testing such that it can utilize the helper functions (i.e.IsUnauthorizedError
) because the error field is not accessible. With this change, packages that depend on this module can create an instance ofGraphQLError
to be able to assert specific error conditions.