memory-adapter
A library that implements the Write Model and Read Model Adapter interface for storing events and projections in memory. Useful for development and testing but not for production, obviously 😛.
Methods
build
build({ entityName }, { eventStore, projectionStore )
builds a read-model and write-model adapter
Parameters
attribute
type
description
entityName
string
the name of the entity
eventStore
object
projectionStore
object
Returns
an object with write model methods and read model methods
Example
You can also provide the initial eventStore
and/or projectionStore
objects (both are optional). This is useful when writing tests.
Last updated