From 54dae53100db7382f4a5c4a16905c44af8bacd0b Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Wed, 27 Oct 2021 18:22:02 +0300 Subject: [PATCH] GraphQLError: revert `originalError` to be nullable Partial revert of #3333 Were reverted due to conflict with Apollo Server, see https://github.com/apollographql/apollo-server/issues/5843 --- src/error/GraphQLError.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error/GraphQLError.js b/src/error/GraphQLError.js index 7552bb473d1..d3068adacbf 100644 --- a/src/error/GraphQLError.js +++ b/src/error/GraphQLError.js @@ -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.