You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure this is lighthouse or graphql-php bug. But this is definitely not a server error so the Client should see the message about invalid query (eg "Unknown Type is not a valid/known type").
The fix for this depends on webonyx/graphql-php#1068 which will be available in graphql-php 15. If you are brave, you can try running #1898 - it will be available in Lighthouse v6.
Describe the bug / Expected behavior/Solution
Not sure this is lighthouse or graphql-php bug. But this is definitely not a server error so the Client should see the message about invalid query (eg "Unknown Type is not a valid/known type").
Steps to reproduce
APP_DEBUG=false
composer require nuwave/lighthouse
php artisan serve
curl -g -X POST -H "Content-Type: application/json" -d '{"query":"query($unknown: UnknownType){users{id}}"}' http://127.0.0.1:8000/graphql
Output/Logs
So the client will never know what is wrong
Click to expand
Lighthouse Version
v5.57.0
The text was updated successfully, but these errors were encountered: