Skip to main content

Module migration

Module migration 

Source

Functions§

migrate
Apply a chain of migrations to a raw JSON value.
schema_version_of
Read the schema_version field from a raw JSON object value. Returns 0 if the field is absent (pre-versioned files).

Type Aliases§

MigrateFn
A versioned migration function: takes a raw JSON value at schema version N and returns a transformed value at schema version N+1.