我有一个特殊的场景
1)我在localhost上有一个angular应用。
2) angular应用需要发送一个JSON对象。
3) JSON对象将存储在AWS dynamodb表中。
你知道我如何实现point#3吗?
将json对象存储在dynamodb中。
每次按下按钮后,它都会一次又一次地执行相同的任务。
我的angular应用程序有CRUD选项。
你知道我该怎么做吗?比如把CRUD选项链接到dynamodb。
诚挚的问候。
发布于 2018-10-17 17:39:17
尝试如下所示的AmazonClient:
var params = {
TableName : 'Table',
Item: {
HashKey: 'haskey',
NumAttribute: 1,
BoolAttribute: true,
ListAttribute: [1, 'two', false],
MapAttribute: { foo: 'bar'},
NullAttribute: null
}
};
var documentClient = new AWS.DynamoDB.DocumentClient();
documentClient.put(params, function(err, data) {
if (err) console.log(err);
else console.log(data);
});
文档here。
https://stackoverflow.com/questions/52851624
复制相似问题