Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/resource_clients/key_value_store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export class KeyValueStoreClient extends ResourceClient {
ow.object.exactShape({
limit: ow.optional.number,
exclusiveStartKey: ow.optional.string,
collection: ow.optional.string,
prefix: ow.optional.string,
}),
);

Expand Down Expand Up @@ -253,6 +255,8 @@ export interface KeyValueClientUpdateOptions {
export interface KeyValueClientListKeysOptions {
limit?: number;
exclusiveStartKey?: string;
collection?: string;
prefix?: string;
}

export interface KeyValueClientListKeysResult {
Expand Down
2 changes: 2 additions & 0 deletions test/key_value_stores.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ describe('Key-Value Store methods', () => {
const query = {
limit: 10,
exclusiveStartKey: 'fromKey',
collection: 'my-collection',
prefix: 'my-prefix',
};

const res = await client.keyValueStore(storeId).listKeys(query);
Expand Down