API Reference > ecschema-metadata > Context > SchemaContext > getSchema getSchema Method getSchema<T extends Schema<T>>(schemaKey: SchemaKey, matchType: SchemaMatchType = SchemaMatchType.Latest): Promise<undefined | T> Parameter Type Description schemaKey SchemaKey matchType SchemaMatchType Returns - Promise<undefined | T> Defined in core/ecschema-metadata/src/Context.ts Line 182 Last Updated: 11 June, 2024