jbernavaprah / lighthouse-error-handler
An Error handler for Lighthouse
Installs: 95
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jbernavaprah/lighthouse-error-handler
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.