class GraphQL::Schema::Timeout::TimeoutError
such as ‘RuntimeError`.
to take this error and raise a new one which _doesn’t_ descend from {GraphQL::ExecutionError},
To raise an error that will stop query resolution, use a custom block
its message will be added to the response’s ‘errors` key.
Since it’s a child of {GraphQL::ExecutionError},
This error is raised when a query exceeds ‘max_seconds`.
def initialize(field)
def initialize(field) super("Timeout on #{field.path}") end