Page Contents

Home > @loopback/repository > KVConnector > get

KVConnector.get() method

Get an entry by key

Signature:

get(modelClass: Class<Entity>, key: string, options?: Options): Promise<T>;

Parameters

Parameter Type Description
modelClass Class<Entity> Model class
key string Key for the entry
options Options Options for the operation

Returns:

Promise<T>

A promise of the entry found for the key