jerni a framework to build data-driven products from the ground up
| Type: | DataModel |
| Namespace: | jerni |
| Extends: | Object |
| Description: | Generic type for a data model in a store with more than one of them. |
Properties
name:
stringname of the model. Usually used to name the underlaying storage structure
version:
stringversion of the model. This enables the ability to run multiple versions of a model to avoid down-time in migrations
transform:
(UncommittedEvent[]) => Promise<Operation[]>functionally transfrom an event into a list of database operations. This will not have the ability to read the event's ID