📆 Don't miss our Sanity Showcase virtual meetup on March 20th!
@public
type

CreateOrReplaceMutation

Represents a mutation that can create or replace a document in the Sanity Content Lake given its ID.

Import

import {type CreateOrReplaceMutation} from 'sanity/migrate'

Signature

type CreateOrReplaceMutation<Doc extends SanityDocument> = {
  type: 'createOrReplace'
  document: Doc
}
type CreateOrReplaceMutation<Doc extends SanityDocument> = {
  type: 'createOrReplace'
  document: Doc
}
sanity@3.79.0