Mercurius Error wrapper that inspired from Apollo Server Error
npm install mercurius-error
import { UserInputError } from 'mercurius-error'
const resolvers = {
Query: {
hello: () => {
throw new UserInputError('Invalid input')
},
},
}
All Expections return http code 200 that inspired from Apollo Server Error.