insert MethodStatic
insert(iModelDb, parentSubjectId, name)
insert(iModelDb: IModelDb, parentSubjectId: string, name: string): string
| Parameter | Type | Description |
|---|---|---|
| iModelDb | IModelDb | |
| parentSubjectId | string | |
| name | string |
Returns - string
insert(txn, parentSubjectId, name) @beta
Insert an InformationRecordPartition and an InformationRecordModel that sub-models it using an explicit transaction.
insert(txn: EditTxn, parentSubjectId: string, name: string): string
@returns The Id of the newly inserted InformationRecordModel. *
@throws IModelError if there is an insert problem. *
| Parameter | Type | Description |
|---|---|---|
| txn | EditTxn | The EditTxn used to perform inserts. * |
| parentSubjectId | string | The InformationRecordPartition will be inserted as a child of this Subject element. * |
| name | string | The name of the InformationRecordPartition that the new InformationRecordModel will sub-model. * |
Returns - string
The Id of the newly inserted InformationRecordModel. *
Defined in
- backend/src/Model.ts Line 630
Last Updated: 25 April, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.