graphql-middleware-error-handler

JSON →
library 1.0.2 ·javascript
verified May 27, 2026

A generic GraphQL middleware that captures errors thrown in resolvers and forwards them to a custom logging function (e.g., Sentry, Bugsnag). Version 1.0.2 is the current stable release; maintenance is intermittent. Key differentiators: minimal API with only three options (onError, captureReturnedErrors, forwardErrors), works with any GraphQL server supporting graphql-middleware (v2–v6), and allows control over error rethrowing and returning error capture.

total hits 28
actors 8 distinct systems
last hit 3d ago ByteDance
Amazonbot
4
ByteDance
4
MetaBot
4
GPTBot
2
Script
1
Search engines
2
Humans
6

top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · VN · 🇳🇴 Norway