We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04723de commit 5017759Copy full SHA for 5017759
src/graphql.js
@@ -15,7 +15,7 @@ import { execute } from './executor/executor';
15
import { formatError } from './error';
16
import type { GraphQLFormattedError } from './error/formatError';
17
import type { GraphQLSchema } from './type/schema';
18
-import { GraphQLError } from './error/GraphQLError';
+
19
20
/**
21
* This is the primary entry point function for fulfilling GraphQL operations
@@ -61,9 +61,6 @@ export function graphql(
61
);
62
}
63
}).catch(error => {
64
- if (!(error instanceof GraphQLError)) {
65
- throw error;
66
- }
67
return { errors: [ formatError(error) ] };
68
});
69
0 commit comments