Sanity Library Reference Docs
    Preparing search index...

    Interface ResponseQueryOptions

    interface ResponseQueryOptions {
        body?: any;
        cache?: undefined;
        cacheMode?: "noStale";
        headers?: Record<string, string>;
        lastLiveEventId?: null | string | string[];
        method?: string;
        next?: undefined;
        perspective?: ClientPerspective;
        query?: any;
        resultSourceMap?: boolean | "withKeyArraySelector";
        returnQuery?: boolean;
        signal?: AbortSignal;
        stega?: boolean | StegaConfig;
        tag?: string;
        timeout?: number;
        token?: string;
        useCdn?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    body?: any
    cache?: undefined
    cacheMode?: "noStale"

    When set to noStale, APICDN will not return a cached response if the content is stale. Tradeoff between latency and freshness of content.

    Only to be used with live content queries and when useCdn is true.

    headers?: Record<string, string>
    lastLiveEventId?: null | string | string[]
    method?: string
    next?: undefined
    perspective?: ClientPerspective
    query?: any
    resultSourceMap?: boolean | "withKeyArraySelector"
    returnQuery?: boolean
    signal?: AbortSignal
    stega?: boolean | StegaConfig
    tag?: string
    timeout?: number
    token?: string
    useCdn?: boolean