class GraphQL::ExecutionError
and the field will resolve to ‘nil`.
the error will be inserted into the response’s ‘“errors”` key
If a field’s resolve function returns a {ExecutionError},
def to_h
-
(Hash)
- An entry for the response's "errors" key
def to_h hash = { "message" => message, } if ast_node hash["locations"] = [ { "line" => ast_node.line, "column" => ast_node.col, } ] end hash end