getKey method

IDBRequest getKey(
  1. JSAny? query
)

The getKey() method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store.

If a key is successfully found, then a structured clone of it is created and set as the result of the request object.

Implementation

external IDBRequest getKey(JSAny? query);