Amazon QLDB Node.js tutorial
Important
End of support notice: Existing customers will be able to use Amazon QLDB until end of support on 07/31/2025. For more details, see
Migrate an Amazon QLDB Ledger to Amazon Aurora PostgreSQL
In this implementation of the tutorial sample application, you use the Amazon QLDB driver with the AWS SDK for JavaScript in Node.js to create a QLDB ledger and populate it with sample data.
As you work through this tutorial, you can refer to the AWS SDK for JavaScript API Reference for management API
operations. For transactional data operations, you can refer to the QLDB Driver for Node.js API Reference
Note
Where applicable, some tutorial steps have different commands or code examples for each supported major version of the QLDB driver for Node.js.
Topics
- Installing the Amazon QLDB Node.js sample application
- Step 1: Create a new ledger
- Step 2: Test connectivity to the ledger
- Step 3: Create tables, indexes, and sample data
- Step 4: Query the tables in a ledger
- Step 5: Modify documents in a ledger
- Step 6: View the revision history for a document
- Step 7: Verify a document in a ledger
- Step 8 (optional): Clean up resources