Sanity Library Reference Docs
    Preparing search index...

    Type Alias CreateMutation<Doc>

    Represents a mutation that creates a new document in the Sanity Content Lake. This mutation will fail if the ID already exist.

    type CreateMutation<Doc extends Optional<SanityDocument, "_id">> = {
        document: Doc;
        type: "create";
    }

    Type Parameters

    Index

    Properties

    Properties

    document: Doc
    type: "create"