Skip to content

Commit

Permalink
GraphQLError: revert originalError to be nullable
Browse files Browse the repository at this point in the history
Fix #3340
Partial revert of #3333
Were reverted due to conflict with Apollo Server, see
apollographql/apollo-server#5843
  • Loading branch information
IvanGoncharov committed Oct 27, 2021
1 parent c7ab7eb commit d24dfb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/error/GraphQLError.d.ts
Expand Up @@ -76,7 +76,7 @@ export class GraphQLError extends Error {
/**
* The original error thrown from a field resolver during execution.
*/
readonly originalError: Error | undefined;
readonly originalError: Error | undefined | null;

/**
* Extension fields to add to the formatted error.
Expand Down
2 changes: 1 addition & 1 deletion src/error/GraphQLError.js
Expand Up @@ -56,7 +56,7 @@ export class GraphQLError extends Error {
/**
* The original error thrown from a field resolver during execution.
*/
+originalError: Error | void;
+originalError: Error | void | null;

/**
* Extension fields to add to the formatted error.
Expand Down

0 comments on commit d24dfb3

Please sign in to comment.