Interface GraphQLResponse<TData>

A successful GraphQL response. Note that GraphQL servers can return both data and errors at the same time (partial success). When that happens, the client will throw AppSyncGraphQLError by default — disable that with throwOnGraphQLError: false to receive the raw response.

interface GraphQLResponse<TData = unknown> {
    data?: TData;
    errors?: readonly GraphQLFormattedError[];
    extensions?: Readonly<Record<string, unknown>>;
}

Type Parameters

  • TData = unknown

Properties

data?: TData
errors?: readonly GraphQLFormattedError[]
extensions?: Readonly<Record<string, unknown>>