Skip to main content
DevForge Academy
Tutorials
References
Exercises
Quizzes
More
Search
⌘K
Headmaster's Portfolio
Online Compiler
Html
Css
Javascript
Typescript
Python
Java
C
Cpp
Csharp
Php
Sql
Go
Kotlin
Rust
Bash
Swift
R
Mongodb
Redis
Postgresql
Cassandra
Dynamodb
Couchdb
Couchbase
Ferretdb
Examples
Reset
Run Code
// DynamoDB with AWS SDK v3 // npm install @aws-sdk/client-dynamodb const { DynamoDBClient, PutItemCommand, GetItemCommand } = require('@aws-sdk/client-dynamodb'); const client = new DynamoDBClient({ region: 'us-east-1' }); await client.send(new PutItemCommand({ TableName: 'Users', Item: { userId: { S: 'user-001' }, name: { S: 'Alice' }, email: { S: 'alice@example.com' } } })); const result = await client.send(new GetItemCommand({ TableName: 'Users', Key: { userId: { S: 'user-001' } } })); console.log(result.Item);
Output
Click "Run Code" to see output...