dynobase-icon
Dynobase

Transform DynamoDB results with JavaScript in Terminal

Prerequisite:   Download Dynobase (free to try) in order to follow the steps below

Dynobase Terminal runs a JavaScript transform over the rows loaded in the current tab. Its result grid is read-only, but explicit calls through the supplied database helper can write to DynamoDB immediately. Review scripts before running them against a live table.

Transforming loaded results in Dynobase Terminal
Dynobase 3.0 interface with demo data. Follow the written steps below for this operation.
1
Load data and open Terminal

Run the query or scan you need, check whether results are complete, then open Terminal from the table workspace.

2
Write a transform

Define transform(data) and return an array of rows. Use filter, map, or reduce for local transformations; the db helper and table key helpers are available for explicit database operations.

3
Run and inspect results

Click Run or press Cmd+Enter on macOS or Ctrl+Enter on Windows/Linux in the editor. Inspect the returned rows and any error; transformed results do not become pending grid edits.


Frequently Asked Questions

When is Terminal useful?

Use it for transformations that do not fit a DynamoDB filter expression, such as regular-expression checks or aggregations over loaded rows. It only receives fetched data, so an incomplete scan cannot produce a table-wide total.

What are example use cases?

Validate loaded records, map attributes for inspection, or calculate statistics from the loaded dataset. Async scripts can also call external APIs or the database helper; explicit database writes execute when the script runs.

How does transform(data) work?

The function receives the loaded item array and returns an array for display, either directly or through a Promise. Helpers include db, TableName, and keyOf(record) for the current table.

Can I write asynchronous code?

Yes. Terminal accepts Promises and async/await. Handle errors in scripts that make several writes, because a partially completed script is not automatically rolled back.

Can I export a script to run outside Dynobase?

Yes, Terminal can export a Node.js script. In 3.0.8 that exporter still emits AWS SDK for JavaScript v2 code, which is out of support; migrate it to SDK v3 and review pagination before using it in automation.

Product Features

Download
/
Changelog
/
Pricing
/
Member Portal
/
Privacy
/
EULA
/
Twitter
© 2026 Dynobase