Add metadata to events #283
peteglassey
started this conversation in
General
Replies: 1 comment 8 replies
-
It's supported, but it's pretty weak in terms of the API.
|
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I cant seem to find it in the documentation, but how do we add metadata to our events that are going to eventstoredb? Eg i want to decorate each aggregate's event metadata with some additional information like version, content-type, scope (internal construct).
I thought it would be on the Apply() method on the Aggregate base class, but isnt.
In our aggregates we have command handling methods, that create the event and call Apply(), so i thought there might be an overload, but i cant find it.
I see there is a way to append metadata when publishing an event to a publisher (eg an 'integration' event etc), but nothing i can find when appending to aggregate's stream.
What did i miss?
Beta Was this translation helpful? Give feedback.
All reactions