postSchemaImportCallback

postSchemaImportCallback: (context: PostImportContext<any>) => Promise<void> | undefined

Will be executed after schemas are imported, while schema lock is still held. Use this to transform data to match the new schema.

@note Schema lock is already held after doing a schema import. No lock acquisition is necessary by the user.

@throws If transformation fails, any changes done after the schema import are abandoned and snapshot is cleared.

Defined in

Last Updated: 23 January, 2026