Sanity Library Reference Docs
    Preparing search index...

    The subset of @sanity/client the engine actually needs. The @sanity-labs/client-fake-for-test TestClient is structurally assignable to this, as is the real @sanity/client SanityClient.

    interface WorkflowMutationOptions {
        ifRevisionId?: string;
    }
    Index

    Properties

    Properties

    ifRevisionId?: string

    Optimistic concurrency: only proceed if the target document's current _rev matches. On mismatch the underlying client throws. Pass the _rev loaded alongside the doc you're about to write back.