Skip to content

Commit

Permalink
GraphQLError: revert originalError to be nullable
Browse files Browse the repository at this point in the history
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 54dae53
Showing 1 changed file with 1 addition and 1 deletion.
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 54dae53

Please sign in to comment.