Typed request payload for AniList GraphQL requests.

export interface AniListRequest {
query: string;
variables?: Record<string, unknown>;
token?: string;
cacheControl?: CacheControl;
noRetry?: boolean;
}
interface AniListRequest {
    query: string;
    variables?: Record<string, unknown>;
    token?: string;
    cacheControl?: CacheControl;
    noRetry?: boolean;
}

Properties

query: string

The GraphQL query or mutation string.

variables?: Record<string, unknown>

Optional variables for the query.

token?: string

Optional authorization token for authenticated requests.

cacheControl?: CacheControl

Optional cache control options.

noRetry?: boolean

Optional flag to disable retry logic for this request.