error is present in the response only if the GraphQL query was unsuccessful.

interface GraphQLResponse {
    data?: any;
    errors?: GraphQLError[];
}

Properties

Properties

data?: any

JSON object that contains the results of a GraphQL query.

errors?: GraphQLError[]

Errors that the GraphQL query returns.