Opensearch dashboards.savedobjectmigrationmap
Home > opensearch-dashboards > SavedObjectMigrationMap
SavedObjectMigrationMap interface
A map of migration functions to be used for a given type. The map's keys must be valid semver versions.
For a given document, only migrations with a higher version number than that of the document will be applied. Migrations are executed in order, starting from the lowest version and ending with the highest one.
Signature:
export interface SavedObjectMigrationMap
Example
const migrations: SavedObjectMigrationMap = {
'1.0.0': migrateToV1,
'2.1.0': migrateToV21
}