jbernavaprah/lighthouse-error-handler

An Error handler for Lighthouse

v1.1.1 2022-06-05 15:24 UTC

This package is auto-updated.

Last update: 2024-11-05 21:04:48 UTC


README

Software License GitHub Tests Action Status Coverage Status PHPStan Latest Version on Packagist Total Downloads

Is not PRODUCTION READY.

Implement error handler like described here: https://blog.logrocket.com/handling-graphql-errors-like-a-champ-with-unions-and-interfaces/

It's still work in progress. So not production ready!

Requirements

Installation

1. Install using composer:

composer require jbernavaprah/lighthouse-error-handler

2. Publish configuration and schema

php artisan vendor:publish --tag=lighthouse-error-handler

That's it!

You will se every type new type covered by the default errors from Laravel/Lumen.