apollo-server-plugin-bugsnag
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

Usage

import { getApolloBugsnagPlugin } from 'apollo-server-plugin-bugsnag';
 
...
const server = new ApolloServer({
  ...,
  plugins: [
    getApolloBugsnagPlugin(
      // error callback
      (event, requestContext) => {
        // my context has a `state` object that I can use to enchance
        // notify calls
        return {
          user: requestContext.state.user,
        };
      }
    )
  ],
});

Install

# via npm 
npm install apollo-server-plugin-bugsnag
# or via yarn 
yarn add apollo-server-plugin-bugsnag

If using bugsnag 6.x

# via npm 
npm install apollo-server-plugin-bugsnag@1.0.0
# or via yarn 
yarn add apollo-server-plugin-bugsnag@1.0.0

Readme

Keywords

none

Package Sidebar

Install

npm i apollo-server-plugin-bugsnag

Weekly Downloads

4

Version

2.0.1

License

MIT

Unpacked Size

4.9 kB

Total Files

7

Last publish

Collaborators

  • magne4000