Skip to content

Commit

Permalink
fix: state list keys example (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzraho authored Jul 3, 2024
1 parent 69e722a commit eb8fd08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/guides/application_state.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit eb8fd08

Please sign in to comment.