5.0.0 • Published 6 years ago
hebo-event-repository-inmemory v5.0.0
hebo-event-repository-inmemory
Event Repository implementation for hebo-js that stores everything in memory
Table of Contents
Install
npm:
npm install hebo-event-repository-inmemoryyarn:
yarn add hebo-event-repository-inmemoryUsage
This repository is meant to be used in tests, not in production code, since it only stores things to memory.
const HeboEventRepositoryInmemory = require('hebo-event-repository-inmemory');
const aggregateNames = ['library', 'book', 'author'];
const eventRepository = new HeboEventRepositoryInmemory({
aggregates: aggregateNames
});Contributors
| Name |
|---|
| Steve Caldwell |
License
MIT © Steve Caldwell