mercurius-error
v1.0.1
Published
Mercurius error exception inspired from Apollo Server Error
Downloads
13
Readme
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.