querySchemaVersion Method

Query the version of a schema of the specified name in this iModel.

querySchemaVersion(schemaName: string): string | undefined

@returns The schema version as a semver-compatible string or undefined if the schema has not been imported.

Parameter Type Description
schemaName string  

Returns - string | undefined

The schema version as a semver-compatible string or undefined if the schema has not been imported.

Defined in

Last Updated: 07 May, 2026