saveChanges Method


saveChanges(description?)

Commit unsaved changes in memory as a Txn to this iModelDb.

saveChanges(description?: string): void

@throws IModelError if there is a problem saving changes or if there are pending, un-processed lock or code requests.

@note This will not push changes to the iModelHub.

@see pushChanges to push changes to the iModelHub.

Parameter Type Description
description string Optional description of the changes.

Returns - void



saveChanges(args)

Commit unsaved changes in memory as a Txn to this iModelDb. This is preferable for case where application like to store additional structured information with the change that could be useful later when rebasing.

saveChanges(args: ): void

@throws IModelError if there is a problem saving changes or if there are pending, un-processed lock or code requests.

@note This will not push changes to the iModelHub.

@see pushChanges to push changes to the iModelHub.

Parameter Type Description
args Provide SaveChangesArgs of the changes.

Returns - void


Defined in

Last Updated: 07 October, 2025