getMetaData Method @preview
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
- backend/src/Entity.ts Line 266
Last Updated: 08 June, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.