Sanity Library Reference Docs
    Preparing search index...

    Interface UnfilteredResponseQueryOptions

    interface UnfilteredResponseQueryOptions {
        body?: any;
        cache?: undefined;
        cacheMode?: "noStale";
        filterResponse: false;
        headers?: Record<string, string>;
        lastLiveEventId?: null | string | string[];
        method?: string;
        next?: undefined;
        perspective?: ClientPerspective;
        query?: any;
        resultSourceMap?: boolean | "withKeyArraySelector";
        returnQuery?: true;
        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.

    filterResponse: false
    headers?: Record<string, string>
    lastLiveEventId?: null | string | string[]
    method?: string
    next?: undefined
    perspective?: ClientPerspective
    query?: any
    resultSourceMap?: boolean | "withKeyArraySelector"
    returnQuery?: true

    When filterResponse is false, returnQuery also defaults to true for backwards compatibility (on the client side, not from the content lake API). Can also explicitly be set to true.

    signal?: AbortSignal
    stega?: boolean | StegaConfig
    tag?: string
    timeout?: number
    token?: string
    useCdn?: boolean