graphql-errors
JSON →A utility library for masking internal error messages in GraphQL responses. Version 2.1.0 (stable) – low release cadence. Provides `maskErrors()` to intercept and replace error messages with a generic 'internal error' string, while logging the full error server-side for debugging. Differentiates from alternatives like `graphql-middleware` or `formatError` by operating directly on the schema with minimal configuration. Requires `graphql` >0.4.0 as a peer dependency.
Resources
packagegraphql-errors ↗