{"id":22430130,"url":"https://github.com/2wce/graphql-middleware-bugsnag","last_synced_at":"2025-03-27T07:14:23.472Z","repository":{"id":38173567,"uuid":"208985090","full_name":"2wce/graphql-middleware-bugsnag","owner":"2wce","description":"GraphQL Middleware plugin for Bugsnag","archived":false,"fork":false,"pushed_at":"2022-11-11T10:56:05.000Z","size":434,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T12:12:12.383Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/2wce.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-17T07:16:00.000Z","updated_at":"2021-05-11T11:37:41.000Z","dependencies_parsed_at":"2022-09-02T11:32:27.372Z","dependency_job_id":null,"html_url":"https://github.com/2wce/graphql-middleware-bugsnag","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2wce%2Fgraphql-middleware-bugsnag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2wce%2Fgraphql-middleware-bugsnag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2wce%2Fgraphql-middleware-bugsnag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2wce%2Fgraphql-middleware-bugsnag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2wce","download_url":"https://codeload.github.com/2wce/graphql-middleware-bugsnag/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245798356,"owners_count":20673902,"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":[],"created_at":"2024-12-05T21:07:29.683Z","updated_at":"2025-03-27T07:14:23.451Z","avatar_url":"https://github.com/2wce.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# graphql-middleware-bugsnag\n\n\u003c!-- [![Build Status](https://semaphoreci.com/api/v1/michieldewilde/graphql-middleware-bugsnag/branches/master/badge.svg)](https://semaphoreci.com/michieldewilde/graphql-middleware-bugsnag) --\u003e\n\n\u003e GraphQL Middleware plugin for Bugsnag.\n\n## Usage\n\n\u003e With GraphQL Yoga\n\n```ts\nimport { GraphQLServer } from 'graphql-yoga'\nimport { bugsnag } from 'graphql-middleware-bugsnag'\n\nconst typeDefs = `\n  type Query {\n    hello: String!\n    bug: String!\n  }\n`\n\nconst resolvers = {\n  Query: {\n    hello: () =\u003e `Hey there!`\n    bug: () =\u003e {\n      throw new Error(`Many bugs!`)\n    }\n  }\n}\n\nconst bugsnagMiddleware = bugsnag({\n  apiKey: BUGSNAG_API_KEY\n})\n\nconst server = GraphQLServer({\n  typeDefs,\n  resolvers,\n  middlewares: [bugsnagMiddleware]\n})\n\nserve.start(() =\u003e `Server running on http://localhost:4000`)\n```\n\n## API \u0026 Configuration\n\n```ts\nexport interface Options {\n  apiKey: string\n  forwardErrors?: boolean\n}\n\nconst bugsnag = (options: Options): IMiddlewareFunction\n```\n\n### Options\n\n| property        | required | description                                                   |\n| --------------- | -------- | ------------------------------------------------------------- |\n| `apiKey`        | true     | Your Bugsnag API KEY                                          |\n| `forwardErrors` | false    | Should middleware forward errors to the client or block them. |\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2wce%2Fgraphql-middleware-bugsnag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2wce%2Fgraphql-middleware-bugsnag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2wce%2Fgraphql-middleware-bugsnag/lists"}