Guides
Tutorials
Handles the errors thrown by the GraphQL library by applying the formatter to them (default behavior).
class ApiPlatform\GraphQl\Error\ErrorHandler implements `<a href="/docs/reference/GraphQl/Error/ErrorHandlerInterface">ApiPlatform\GraphQl\Error\ErrorHandlerInterface</a>`
{
public __invoke(array $errors, callable $formatter): array
}
class ApiPlatform\GraphQl\Error\ErrorHandler implements `<a href="/docs/reference/GraphQl/Error/ErrorHandlerInterface">ApiPlatform\GraphQl\Error\ErrorHandlerInterface</a>`
{
public __invoke(array $errors, callable $formatter): array
}
public __invoke(array $errors, callable $formatter): array
public __invoke(array $errors, callable $formatter): array
errors | array | |
formatter | callable |
array