onExportRelationship Method
Override of IModelExportHandler.onExportRelationship that imports a relationship into the target iModel when it is exported from the source iModel. This override calls onTransformRelationship and then IModelImporter.importRelationship to update the target iModel.
onExportRelationship(sourceRelationship: Relationship, _isUpdate?: boolean, endpointFedGuids?: RelationshipEndpointFederationGuids): Promise<void>
@note Overrides should pass endpointFedGuids to super. If it is omitted, the transformer looks up both endpoint FederationGuids for every relationship, which is slower.
| Parameter | Type | Description |
|---|---|---|
| sourceRelationship | Relationship | |
| _isUpdate | boolean | |
| endpointFedGuids | RelationshipEndpointFederationGuids | The FederationGuids of the relationship's source and target elements, as supplied by IModelExporter. If undefined, both are looked up in the source iModel when provenance needs them. |
Returns - Promise
Defined in
Last Updated: 06 November, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.