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]?
  • Initializer with all properties

    Declaration

    Swift

    public init(message: String,
                locations: [Location]? = nil,
                path: [JSONValue]? = nil,
                extensions: [String: JSONValue]? = nil)
  • Both line and column are positive numbers describing the beginning of an associated syntax element

    See more

    Declaration

    Swift

    public struct Location : Decodable