Deprecated  in 5.10.0 - will not be removed until after 2026-09-03. Obtain a SchemaView via iModel.getSchemaView() and call view.findClass(entity.classFullName) to retrieve a SchemaView.Class. The returned type differs from EntityClass | RelationshipClass and offers a synchronous, snapshot-style API.

Query metadata for this entity class from the iModel's schema. Returns cached metadata if available.

getMetaData(): Promise<EntityClass | RelationshipClass>

@throws IModelError if there is a problem querying the schema

@returns The metadata for the current entity

Returns - Promise<EntityClass | RelationshipClass>

The metadata for the current entity

Defined in

Last Updated: 08 June, 2026