Sanity Library Reference Docs
    Preparing search index...

    Interface CreateQueryStoreOptions

    interface CreateQueryStoreOptions {
        client: false | SanityClient | SanityStegaClient;
        ssr?: boolean;
    }
    Index

    Properties

    Properties

    client: false | SanityClient | SanityStegaClient

    The Sanity client to use for fetching data, or false if ssr: true and it's set with setServerClient later You may use any client that is an instanceof SanityClient or instanceof SanityStegaClient.

    `import {createClient} from '@sanity/client'`
    
    `import {createClient} from '@sanity/client/stega'`
    
    `import {createClient} from '@sanity/preview-kit/client'`
    
    `import {createClient} from 'next-sanity'`
    
    ssr?: boolean

    If you want all data fetching to be done server-side in production, set this to true and client: false. Then, in your server entry file, you can set the Sanity client with setServerClient.