An error returned by GraphQL

interface GraphqlErrorResponse {
    extensions?: JsonObject;
    locations?: { column: number; line: number }[];
    message: string;
    path?: (string | number)[];
}

Properties

extensions?: JsonObject

Extra information about the error.

Will likely be ShipgeniusGraphqlErrorExtension

locations?: { column: number; line: number }[]

Where the error occurred

Type declaration

  • column: number

    The column in the GraphQL document the error occurred

  • line: number

    The line in the GraphQL document the error occurred

message: string

The error message

path?: (string | number)[]

The path of keys to where the error occurred