Currently an event "Created Date" is not available to JavaScript projections. It would be nice to have it available in cases an event date is not explicitly available as part of event data.
Or am I missing something already present?
Why not just add the date as part of metadata in your code writing the events?
Yes, that is what i planned to do in the meantime. Still it seems odd to me as a Created property (DateTime) is available on RecordedEvent in the .Net API. So the DateTime is already recorded anyway.
Is there a deeper reason to store the CreationDateexplicitly in the event (metadata)?
I could imagine as an example migration of events (delete stream, store events again) where it would be desired to keep the original CreationDate.
exactly. If you rely on the stored date you can't do things like migration.
On Wed, Jun 21, 2017 at 10:36 AM, Andreas Kägi notifications@github.com
wrote:
Is there a deeper reason to store the CreationDateexplicitly in the event
(metadata)?
I could imagine as an example migration of events (delete stream, store
events again) where it would be desired to keep the original CreationDate.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/EventStore/EventStore/issues/1344#issuecomment-310025285,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAXRWh6fnUYYIymKXN8VYnkkgL1SGix3ks5sGOQZgaJpZM4N_aJp
.
--
Studying for the Turing test
Most helpful comment
Yes, that is what i planned to do in the meantime. Still it seems odd to me as a Created property (DateTime) is available on RecordedEvent in the .Net API. So the DateTime is already recorded anyway.