Skip to content

getstation/apollo-server-plugin-error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

import { ApolloServerPluginError } from 'apollo-server-plugin-error';

...
const server = new ApolloServer({
  ...,
  plugins: [
    new ApolloServerPluginError((error) => {
      // here you handle the error as you want
      console.error(error);
    })
  ],
});

Install

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

About

apollo-server plugin that handle errors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published