From eb8fd085ecb0cb4150d228261215c1c366a95d97 Mon Sep 17 00:00:00 2001 From: Moritz Raho Date: Wed, 3 Jul 2024 11:48:44 +0200 Subject: [PATCH] fix: state list keys example (#345) --- src/pages/guides/application_state.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/guides/application_state.md b/src/pages/guides/application_state.md index 8bc993532..9a7acd85f 100644 --- a/src/pages/guides/application_state.md +++ b/src/pages/guides/application_state.md @@ -98,8 +98,8 @@ npm install @adobe/aio-lib-state // delete await state.delete('key') - // list keys using an iterator, with glob pattern support - await for (const { keys } of state.list({ match: 'ke*' })) { + // list keys using an iterator, with glob pattern support, omit the match option to list all keys + for await (const { keys } of state.list({ match: 'ke*' })) { console.log(keys) }