1.0.1 • Published 3 years ago
mercurius-error v1.0.1
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.