transaction.STORE.getKey() - cieszynski/dberta.js GitHub Wiki

Syntax

TRANSACTION.STORE.getKey(keyOrKeyRange)

Parameters

keyOrKeyRange

Return value

A Promise that resolves to the key for the first record matching the given key or key range.

Description

This method conveniently wraps the getKey() method of the IDBObjectStore interface.

Exceptions

TransactionInactiveError (from IDBObjectStore)

DataError (from IDBObjectStore)

InvalidStateError (from IDBObjectStore)

⚠️ **GitHub.com Fallback** ⚠️