Sanity Library Reference Docs
    Preparing search index...

    Type Alias CreateIfNotExistsMutation<Doc>

    Represents a mutation that can create a new document in the Sanity Content Lake if its ID does not exist.

    type CreateIfNotExistsMutation<Doc extends SanityDocument> = {
        document: Doc;
        type: "createIfNotExists";
    }

    Type Parameters

    Index

    Properties

    Properties

    document: Doc
    type: "createIfNotExists"