Sanity Library Reference Docs
    Preparing search index...

    Module @sanity/migrate

    @sanity/migrate

    Content migration toolkit for Sanity.io

    Interfaces

    APIConfig
    ExportAPIConfig
    JSONOptions
    Migration
    MigrationContext
    MigrationRunnerConfig
    NodeMigration
    Transaction

    Type Aliases

    AnyOp
    ArrayOp
    AsyncIterableMigration
    CreateIfNotExistsMutation
    CreateMutation
    CreateOrReplaceMutation
    DecOp
    DeleteMutation
    DiffMatchPatchOp
    DocumentMigrationReturnValue
    IncOp
    IndexedSegment
    InsertOp
    JsonArray
    JsonObject
    JSONParser
    JsonPrimitive
    JsonValue
    KeyedSegment
    MigrateDefinition
    MigrationProgress
    Mutation
    NodeMigrationReturnValue
    NodePatch
    NodePatchList
    NumberOp
    Operation
    PatchMutation
    PatchOptions
    Path
    PrimitiveOp
    RelativePosition
    ReplaceOp
    SanityDocument
    SetIfMissingOp
    SetOp
    StringOp
    TruncateOp
    UnsetOp

    Variables

    DEFAULT_MUTATION_CONCURRENCY
    del
    MAX_MUTATION_CONCURRENCY
    safeJsonParser

    Functions

    append
    at
    collectMigrationMutations
    create
    createIfNotExists
    createOrReplace
    dec
    decodeText
    defineMigration
    delay
    delete_
    diffMatchPatch
    dryRun
    filter
    fromDocuments
    fromExportArchive
    fromExportEndpoint
    inc
    insert
    insertAfter
    insertBefore
    map
    parse
    parseJSON
    patch
    prepend
    replace
    run
    set
    setIfMissing
    split
    stringify
    stringifyJSON
    take
    toArray
    toFetchOptionsIterable
    transaction
    truncate
    unset