Sanity Library Reference Docs
    Preparing search index...

    Type Alias Mutation<R>

    Mutation:
        | { create: SanityDocumentStub<R> }
        | { createOrReplace: IdentifiedSanityDocumentStub<R> }
        | { createIfNotExists: IdentifiedSanityDocumentStub<R> }
        | { delete: MutationSelection }
        | { patch: PatchMutationOperation }

    Type Parameters

    • R extends Record<string, Any> = Record<string, Any>