2.0.1 • Published 4 years ago

apollo-server-plugin-bugsnag v2.0.1

Weekly downloads
14
License
MIT
Repository
-
Last release
4 years ago

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
2.0.1

4 years ago

2.0.0

4 years ago

1.0.0

4 years ago