Welcome :)

Iwan Luijks

Pushing GraphQL errors from API Platform to Sentry

By default errors resulting from GraphQL calls done to API Platform don't end up in Sentry. Use the following piece of code and configuration to make sure they will be send to Sentry. namespace MyNamespace; use ApiPlatform\GraphQl\Error\ErrorHandlerInterface; use GraphQL\Error\Error; use Sentry\State\HubInterface; class ErrorHandler implements ErrorHandlerInterface…

Continue reading...