{"id":21320449,"url":"https://github.com/eclass/graphql-notify-errors","last_synced_at":"2026-03-08T11:32:33.096Z","repository":{"id":40308791,"uuid":"132514272","full_name":"eclass/graphql-notify-errors","owner":"eclass","description":"Send errors captured by graphql to sentry, bugsnag or similar","archived":false,"fork":false,"pushed_at":"2024-11-15T20:27:27.000Z","size":168,"stargazers_count":0,"open_issues_count":21,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-15T21:24:33.234Z","etag":null,"topics":["eclass","error-handling","graphql"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eclass.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-07T20:41:59.000Z","updated_at":"2022-03-26T12:31:02.000Z","dependencies_parsed_at":"2023-10-21T00:24:41.287Z","dependency_job_id":"5a94019a-90bb-4afa-8bea-be9c733b9995","html_url":"https://github.com/eclass/graphql-notify-errors","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.2142857142857143,"last_synced_commit":"eb3b929d341b0c154dc0c9d0b1322e67d877a6da"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclass%2Fgraphql-notify-errors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclass%2Fgraphql-notify-errors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclass%2Fgraphql-notify-errors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclass%2Fgraphql-notify-errors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eclass","download_url":"https://codeload.github.com/eclass/graphql-notify-errors/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224848483,"owners_count":17379923,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["eclass","error-handling","graphql"],"created_at":"2024-11-21T19:47:53.487Z","updated_at":"2026-03-08T11:32:33.089Z","avatar_url":"https://github.com/eclass.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# graphql-notify-errors\n\n[![npm version](https://img.shields.io/npm/v/graphql-notify-errors.svg?style=flat-square)](https://www.npmjs.com/package/graphql-notify-errors)\n[![npm downloads](https://img.shields.io/npm/dm/graphql-notify-errors.svg?style=flat-square)](https://www.npmjs.com/package/graphql-notify-errors)\n[![devDependency Status](https://img.shields.io/david/dev/eclass/graphql-notify-errors.svg?style=flat-square)](https://david-dm.org/eclass/graphql-notify-errors#info=devDependencies)\n\n\u003e Send errors captured by graphql to sentry, bugsnag or similar\n\n## Installation\n\n```bash\nnpm i graphql-notify-errors\n```\n\n## Use\n\n```js\nconst { formatError, GraphQLError } = require('graphql')\nconst express = require('express')\nconst Raven = require('raven')\nconst NotifyErrors = require('graphql-notify-errors')\n\nRaven.config(process.env.SENTRY_DSN).install()\n\nconst filter = err =\u003e !(err instanceof GraphQLError)\nconst options = {\n  formatError,\n  filter,\n  notify: Raven.captureException\n}\nconst notifyErrors = new NotifyErrors(options)\nconst app = express()\napp.use('/graphql', graphqlExpress(req =\u003e {\n    return {\n      schema,\n      context: { req },\n      formatError: err =\u003e notifyErrors.formatError(err)\n    }\n  })\n)\n```\n\n## License\n\n[MIT](https://tldrlegal.com/license/mit-license)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feclass%2Fgraphql-notify-errors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feclass%2Fgraphql-notify-errors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feclass%2Fgraphql-notify-errors/lists"}