Progress indicated by console logs is off by one

Open Beginner friendly
#1,336 0 comments 0 reactions 0 assignees View on GitHub

@marceliwac is already working on this.

Since Nov 19, 2026.

  • #1337 by @marceliwac — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
aws, node.js, typescript
Domain
backend, databases

Research direction

Start with typescript/appsync-graphql-dynamodb/utils/index.js, where the issue says the DynamoDB inserts report progress, and check how the total is calculated. Follow the example's README.md steps and compare the console total with the number of entries being inserted. Done when the logs show the correct total.

Written by the indexing model from the issue text.

Description

bug needs-triage
Describe the bug

In the typescript/appsync-graphql-dynamodb example, the utils/index.js inserts the data into DynamoDB table and reports progress via console logs.

The actual progress indicated is off by one - reporting the total number of items to be inserted as greater than it really is.

Expected Behavior

Progress-indicating console logs should display the correct total number of entries which are being inserted.

Current Behavior

Progress indicating console logs display a total number of entries being inserted as one-greater than it really is.

Reproduction Steps

This can be reproduced by following the example's README.md and observing the console output.

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.1148.1

Framework Version

No response

Node.js Version

24.22.1

OS

MacOS 27.0.1

Language

Typescript

Language Version

7.0.2

Dominant language
TypeScript
Stars
5.7k
Forks
2.5k
Avg merge
16h 44m
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.