serverless-cqrs.elasticsearch-adapter

0.2.10-alpha.0 • Public • Published

elasticsearch-adapter

A library that implements the Read Model Adapter interface for storing projections on AWS ElasticSearch.

Methods

build

build({ entityName }, { endpoint )

builds a read-model adapter

Parameters

attribute type description
entityName string the name of the entity
endpoint string the ElasticSearch instance endpoint url

Returns

an object with read model methods

Example

const elasticAdapterBuilder = require('serverless-cqrs.elasticsearch-adapter')
module.exports = elasticAdapterBuilder.build({ 
  entityName: 'todo'
}, {
  endpoint: 'https://xxxxxx.yyy/zzzz/1234',
})

Package Sidebar

Install

npm i serverless-cqrs.elasticsearch-adapter

Weekly Downloads

5

Version

0.2.10-alpha.0

License

ISC

Unpacked Size

11.7 kB

Total Files

9

Last publish

Collaborators

  • yonahforst