Use default skipError of @envelop/sentry (#954)

This commit is contained in:
Kamil Kisiela 2023-01-05 16:38:45 +01:00 committed by GitHub
parent e6e7b42c82
commit 3a1ce6b699
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,3 @@
import { isGraphQLError } from '@envelop/core';
import { useGenericAuth } from '@envelop/generic-auth';
import { useGraphQLModules } from '@envelop/graphql-modules';
import { useSentry } from '@envelop/sentry';
@ -153,7 +152,6 @@ export const graphqlHandler = (options: GraphQLHandlerOptions): RouteHandlerMeth
// It's the readiness check
return args.operationName === 'readiness';
},
skipError: isGraphQLError,
}),
useSentryUser(),
useErrorHandler(({ errors, context }): void => {