memory-adapter
Last updated
Was this helpful?
Last updated
Was this helpful?
A library that implements the and Adapter interface for storing events and projections in memory. Useful for development and testing but not for production, obviously 😛.
build({ entityName }, { eventStore, projectionStore )
builds a read-model and write-model adapter
attribute
type
description
entityName
string
the name of the entity
eventStore
object
projectionStore
object
an object with and
You can also provide the initial eventStore
and/or projectionStore
objects (both are optional). This is useful when writing tests.
(optional) an object where keys are entityNames
and values are arrays of objects
(optional) an object where keys are entity names and values are objects keyed by id