Skip to content

Commit

Permalink
fix typo in map docs section: forEach -> map (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
argshook authored Nov 1, 2024
1 parent e4f29f1 commit cc7e442
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -930,12 +930,12 @@ const { result } = await db.users.map((doc) => doc.value.username, {
});

// Get a list of the usernames of the first 10 users in the KV store
const { result } = await db.users.forEach((doc) => doc.value.username, {
const { result } = await db.users.map((doc) => doc.value.username, {
limit: 10,
});

// Get a list of the usernames of the last 10 users in the KV store
const { result } = await db.users.forEach((doc) => doc.value.username, {
const { result } = await db.users.map((doc) => doc.value.username, {
limit: 10,
reverse: true,
});
Expand Down

0 comments on commit cc7e442

Please sign in to comment.