API Reference > imodeljs-backend > iModels > IModelDb > findByKey findByKey MethodStatic Find an open IModelDb by its key. findByKey(key: string): IModelDb note This method is mainly for use by RPC implementations. throws IModelNotFoundResponse if an open IModelDb matching the key is not found. see IModel.key Parameter Type Description key string Returns - IModelDb Defined in core/backend/src/IModelDb.ts Line 850 Last Updated: 11 June, 2024