mercurius-error
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

mercurius-error

Mercurius Error wrapper that inspired from Apollo Server Error

Install

npm install mercurius-error

Example

import { UserInputError } from 'mercurius-error'

const resolvers = {
  Query: {
    hello: () => {
      throw new UserInputError('Invalid input')
    },
  },
}

Warnning

All Expections return http code 200 that inspired from Apollo Server Error.

Readme

Keywords

none

Package Sidebar

Install

npm i mercurius-error

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

23.2 kB

Total Files

31

Last publish

Collaborators

  • hirasawa_au