insertModel Method
Deprecated Use EditTxn.insertModel instead, within an explicit EditTxn scope (or via withEditTxn). See EditTxn documentation for migration help.
Insert a new model.
insertModel(props: ModelProps): string
@returns The newly inserted model's Id.
@throws IModelError if insertion fails.
| Parameter | Type | Description |
|---|---|---|
| props | ModelProps | The data for the new model. |
Returns - string
The newly inserted model's Id.
Defined in
- backend/src/IModelDb.ts Line 2572
Last Updated: 18 April, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.