elasticsearch-adapter
A library that implements the Read Model Adapter interface for storing projections on AWS ElasticSearch.
build({ entityName }, { endpoint )
builds a read-model adapter
attribute | type | description |
entityName | string | the name of the entity |
endpoint | string | the ElasticSearch instance endpoint url |
adapter.js
const elasticAdapterBuilder = require('serverless-cqrs.elasticsearch-adapter')
module.exports = elasticAdapterBuilder.build({
entityName: 'todo'
}, {
endpoint: 'https://xxxxxx.yyy/zzzz/1234',
})
Last modified 4yr ago