Skip to content

Commit

Permalink
Update packages/server/src/requestPipeline.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
glasser authored Nov 23, 2022
1 parent eccbab2 commit 527f787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/requestPipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ export async function processGraphQLRequest<TContext extends BaseContext>(
// variable resolution from execution later; see
// /~https://github.com/graphql/graphql-js/issues/3169
const resultErrors = result.errors?.map((e) => {
if (isBadUserInputGraphQLError(e) && e.extensions?.code != null) {
if (isBadUserInputGraphQLError(e) && e.extensions?.code == null) {
return new UserInputError(e);
}
return e;
Expand Down

0 comments on commit 527f787

Please sign in to comment.