This is a plugin to use DynamoDB with Hemera
npm i hemera-dynamodb-store --save
hemera.use(require('hemera-dynamodb-store'), {
dynamodb: {
endpoint: 'http://localhost:8000',
region: 'eu-west-2'
}
})
hemera.ready(() => {
hemera.act({
topic: 'dynamo-store',
cmd: 'create',
collection: 'test',
data: {
id: '12345' ,
name: 'John Doe'
}
}, function (err, resp) {
this.log.info(resp, 'Query result')
})
})
npm run test
Here you can find some examples.
See Store Interface.
- hemera-joi