Sanity Library Reference Docs
    Preparing search index...

    Interface SanityDocument

    interface SanityDocument {
        _createdAt: string;
        _id: string;
        _rev: string;
        _system?: Partial<DocumentSystem>;
        _type: string;
        _updatedAt: string;
        [key: string]: unknown;
    }

    Hierarchy (View Summary)

    Indexable

    • [key: string]: unknown
    Index

    Properties

    _createdAt: string
    _id: string
    _rev: string
    _system?: Partial<DocumentSystem>

    System-managed attributes. Which fields are present depends on the document (e.g. variant/scopeId only exist on version documents, and documents predating the _system migration may carry only some of them), hence the partial shape.

    _type: string
    _updatedAt: string