class GraphQL::Error

Included Modules

Defined in:

graphql/error.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(message : String, path : String, node : Language::ASTNode | Nil = nil) #

def self.new(pull : JSON::PullParser) #

def self.new(message : String, path : Array(String | Int32) | Nil = nil, node : Language::ASTNode | Nil = nil) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

Instance Method Detail

def locations : Array(Location) | Nil #

Where in the query the error originated. Absent for errors that are not tied to a position, such as a missing variable.


def locations=(locations : Array(Location) | Nil) #

Where in the query the error originated. Absent for errors that are not tied to a position, such as a missing variable.


def message : String #

def message=(message : String) #

def path : Array(String | Int32) | Nil #

Response path of the field that failed. Absent for request errors.


def path=(path : Array(String | Int32) | Nil) #

Response path of the field that failed. Absent for request errors.


def with_path(path : String | Int32) #