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
- core/backend/src/IModelDb.ts Line 355
Last Updated: 23 January, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.