thenativeweb / node-cqrs-eventdenormalizer

Node-cqrs-eventdenormalizer is a node.js module that implements the cqrs pattern. It can be very useful as eventdenormalizer component if you work with (d)ddd, cqrs, domain, host, etc.
http://cqrs.js.org/pages/eventdenormalizer.html
MIT License
38 stars 27 forks source link

No occurredAt field in THE_LAST_SEEN_EVENT #67

Closed blissi closed 6 years ago

blissi commented 6 years ago

Hi Adriano, there is currently no occurredAt-field in the last seen event in the revision-collection. I couldn't find this string in the codebase, too - have you removed it at some time?

adrai commented 6 years ago

no, but probably all of your events will not have it... It's (optionally) set in the domain

adrai commented 6 years ago

You have to configure the commitStamp in the event definition

adrai commented 6 years ago

{ "correlationId": "correlationId", "id": "id", "name": "name", "aggregateId": "aggregate.id", "context": "context.name", "aggregate": "aggregate.name", "payload": "payload", "revision": "aggregate.revision", "version": "version", "meta": "meta", "commitStamp": "occurredAt" }

blissi commented 6 years ago

Perfect, thanks for the quick reply! Haven't seen this option.