Skip to content

Commit

Permalink
docs: fixup inline query examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Jan 12, 2025
1 parent 1c554df commit b58731b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ export class Query<T = unknown> implements QueryLike<T> {
* import { query } from "@kitsonk/kv-toolbox/query";
*
* const kv = await Deno.openKv();
* console.log(await query(kv, ["a"]).counts());
* console.log(await query(kv, { prefix: ["a"] }).counts());
* // { key: ["a", "b"], count: 1 }
* // { key: ["a", "d"], count: 2 }
* await kv.close();
Expand Down Expand Up @@ -604,7 +604,7 @@ export class Query<T = unknown> implements QueryLike<T> {
* import { query } from "@kitsonk/kv-toolbox/query";
*
* const kv = await Deno.openKv();
* console.log(await query(kv, ["a"]).tree());
* console.log(await query(kv, { prefix: ["a"] }).tree());
* // {
* // prefix: ["a"],
* // children: [
Expand Down Expand Up @@ -652,7 +652,7 @@ export class Query<T = unknown> implements QueryLike<T> {
* import { query } from "@kitsonk/kv-toolbox/query";
*
* const kv = await Deno.openKv();
* console.log(await query(kv, ["a"]).unique());
* console.log(await query(kv, { prefix: ["a"] }).unique());
* // ["a", "b"]
* // ["a", "d"]
* await kv.close();
Expand Down

0 comments on commit b58731b

Please sign in to comment.