An open API service indexing awesome lists of open source software.

https://github.com/getstation/apollo-server-plugin-error

apollo-server plugin that handle errors
https://github.com/getstation/apollo-server-plugin-error

Last synced: about 2 months ago
JSON representation

apollo-server plugin that handle errors

Awesome Lists containing this project

README

          

## Usage
```typescript
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
```shell script
# via npm
npm install apollo-server-plugin-error
# or via yarn
yarn add apollo-server-plugin-error
```