jbernavaprah / lighthouse-error-handler
An Error handler for Lighthouse
v1.1.1
2022-06-05 15:24 UTC
Requires
- php: ^8.1
- jasny/phpdoc-parser: ^1.0
- laravel/framework: ^9.0
- nuwave/lighthouse: ^5.5
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- jetbrains/phpstorm-attributes: ^1.0
- mockery/mockery: ^1.5
- nunomaduro/larastan: ^2.0
- orchestra/testbench: ^7.0
- orchestra/testbench-core: ^7.0
- phpoption/phpoption: ^1.8
- phpstan/phpstan-mockery: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
- thecodingmachine/safe: ^2.0
README
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.