getMetaData Method
Deprecated in 5.0 - will not be removed until after 2026-06-13. Use getSchemaView() on the iModel and call view.findClass(...) instead.
Get metadata for a class. This method will load the metadata from the iModel into the cache as a side-effect, if necessary.
getMetaData(classFullName: string): EntityMetaData
@throws IModelError if the metadata cannot be found nor loaded.
@example * ```typescript // Current usage: const metaData: EntityMetaData = imodel.getMetaData("SchemaName:ClassName");
// Replacement: const view = await imodel.getSchemaView(); const cls = view.findClass("SchemaName:ClassName");
| Parameter | Type | Description |
|----|----|----|
| <span class="parameter-name">classFullName</span> | <span class="parameter-type">string</span> | |
**Returns** - <span class="method-output"> EntityMetaData</span>
### Defined in
- <span class="defined-in"><a href="https://github.com/iTwin/itwinjs-core/blob/79af2cbc254787b2f6acb7ab8f06855f52f873de/core/backend/src/IModelDb.ts#L1870" target="_blank">backend/src/IModelDb.ts</a></span> Line 1870
Last Updated: 27 May, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.