class
GraphQL::Error
- GraphQL::Error
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
graphql/error.crConstructors
- .new(message : String, path : String, node : Language::ASTNode | Nil = nil)
- .new(pull : JSON::PullParser)
- .new(message : String, path : Array(String | Int32) | Nil = nil, node : Language::ASTNode | Nil = nil)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#locations : Array(Location) | Nil
Where in the query the error originated.
-
#locations=(locations : Array(Location) | Nil)
Where in the query the error originated.
- #message : String
- #message=(message : String)
-
#path : Array(String | Int32) | Nil
Response path of the field that failed.
-
#path=(path : Array(String | Int32) | Nil)
Response path of the field that failed.
- #with_path(path : String | Int32)
Constructor Detail
def self.new(message : String, path : Array(String | Int32) | Nil = nil, node : Language::ASTNode | Nil = nil)
#
Instance Method Detail
Where in the query the error originated. Absent for errors that are not tied to a position, such as a missing variable.
Where in the query the error originated. Absent for errors that are not tied to a position, such as a missing variable.
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.