Snapshot DynamoDB Objects


TAGS: problem solving

Working on the Onboarding flow of an app can be tricky. With a lot of different properties to keep track of, it's tough to get back to a specific point in time with manual editing.

It might seem obvious, but copying the entire JSON object and saving it in a .json file after each change lets me time-travel back to different states.

I created a folder with a README.md and 1.json for the object on init, then added json files for each change.

This helps in a few ways. It made it easy to diff changes that were creating bugs. I can also rewind this object back to start, which is helpful while creating something very state-driven, like an onboarding flow.