Page Contents
Home > @loopback/repository > KeyValueRepository > keys
KeyValueRepository.keys() method
Get an Iterator for matching keys
Signature:
keys?(filter?: KeyValueFilter, options?: Options): AsyncIterable<string>;
Parameters
Parameter | Type | Description |
---|---|---|
filter | KeyValueFilter | Filter for keys |
options | Options | Options for the operation |
Returns:
AsyncIterable<string>
An async iteratable iterator of keys so that the return value can be used with for-await-of
.