Skip to content

getstation/apollo-server-plugin-bugsnag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 [email protected]
# or via yarn
yarn add [email protected]

About

apollo-server plugin that sends errors to bugsnag

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published