API Reference > imodeljs-backend > iModels > SnapshotDb > tryFindByKey tryFindByKey MethodStatic Attempt to find an open IModelDb by key. tryFindByKey(key: string): undefined | SnapshotDb Parameter Type Description key string Returns - undefined | SnapshotDb The matching IModelDb or undefined. Defined in core/backend/src/IModelDb.ts Line 2428 Last Updated: 12 June, 2024