1.3.4 • Published 4 years ago
getto-aws_dynamodb v1.3.4
node-getto-aws_dynamodb
aws_dynamodb : getto-psycher vendor plugin
status: production ready
const aws_dynamodb = require("getto-aws_dynamodb").init({
region: "REGION",
});
const put = async () => {
const documentClient = aws_dynamodb.documentClient();
await documentClient.put({
TableName: "table",
Item: {
id: "ID",
value: "VALUE",
},
ConditionExpression: "attribute_not_exists(id)",
});
};
Table of Contents
Requirements
- Node.js: 10.16.0
Usage
const aws_dynamodb = require("getto-aws_dynamodb").init({
region: "REGION",
});
const put = async () => {
const documentClient = aws_dynamodb.documentClient();
await documentClient.put({
TableName: "table",
Item: {
id: "ID",
value: "VALUE",
},
ConditionExpression: "attribute_not_exists(id)",
});
};
methods
- put
- get
- query
same api as dynamodb document client
Install
npm install --save getto-aws_dynamodb
License
node-getto-aws_dynamodb is licensed under the MIT license.
Copyright © since 2019 shun@getto.systems