key-valuedenokey-value-store

How to list all entries in Deno KV?


I don't see an example on Operations | Deno Docs. I don't know where I've missed.


Solution

  • To list all entries simply use an empty prefix. E.g.

    const allEntries = await Array.fromAsync(kv.list({prefix:[]}));