GraphQLError
public struct GraphQLError : Decodable
extension GraphQLError: Error
The error format according to https://graphql.github.io/graphql-spec/June2018/#sec-Errors
-
Description of the error
Declaration
Swift
public let message: String -
list of locations describing the syntax element
Declaration
Swift
public let locations: [Location]? -
Details the path of the response field with error. The values are either strings or 0-index integers
Declaration
Swift
public let path: [JSONValue]? -
Additional map of of errors
Declaration
Swift
public let extensions: [String : JSONValue]? -
Both
See morelineandcolumnare positive numbers describing the beginning of an associated syntax elementDeclaration
Swift
struct Location : Decodable, @unchecked Sendable
View on GitHub