You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace EnvelopError with GraphQLError. This might be a breaking change though we could potentially work around it by just alias exporting GraphQLError as EnvelopError 🤔 .
in engine agnostic envelop #1487 we dropped useMaskedError plugin from core since that required relying on GraphQLError class. Do we want to create a new plug-in for this?
Is your feature request related to a problem? Please describe.
Right now we use
EnvelopError
which extendsGraphQLError
for identifying whether an error should be masked or not.https://github.com/dotansimha/envelop/blob/7e90676ce7b90a1880d5b06e18b6694819aed1fa/packages/core/src/plugins/use-masked-errors.ts#L17
We choose to use a custom
EnvelopError
because theGraphQLError
constructor API was cumbersome. We changed this within graphql/graphql-js#3454Instead of
We can now instantiate a
GraphQLError
with extensions via the new object constructor overload:Describe the solution you'd like
Replace
EnvelopError
withGraphQLError
. This might be a breaking change though we could potentially work around it by just alias exportingGraphQLError
asEnvelopError
🤔 .However, since the constructor changes that would still be a breaking change.
The text was updated successfully, but these errors were encountered: