@squidcloud/client
    Preparing search index...

    Interface DocIdAndData<T>

    Represents a docId and the data to be inserted. The docId can be left out only for the built_in_db, which generates one. Read more about docId in the documentation.

    interface DocIdAndData<T extends DocumentData> {
        data: T;
        id?: DocIdOrDocIdObj;
    }

    Type Parameters

    Index
    data: T

    Data associated with the document.

    The document ID. Optional only for the built_in_db, which generates one when it is left out.