Sanity Library Reference Docs
    Preparing search index...
    interface EnsureDocumentExistsArgs {
        documentId: string;
        initialValue?: Record<string, unknown>;
        releaseId?: string;
        type: string;
    }
    Index

    Properties

    documentId: string

    Bare (published) document id.

    initialValue?: Record<string, unknown>

    Content for a brand-new document; lake-owned keys are stripped.

    releaseId?: string

    Release binding — set when the start flow targets a Content Release.

    type: string

    The document's _type — used when a brand-new representation is minted.