Event-type and metadata

Hi

We are currently converting our eventsourced application to Eventstore, this created a few questions.

Event-type value? I am having some trouble understanding what to use it for. What do you put in event-type? Classname? (id representing classname)?

What do you put in Metadata, besides info for deserializing event data?

Is json metadata the only way to use metadata in eventstore projections?

Event-type value? I am having some trouble understanding what to use
it for. What do you put in event-type? Classname? (id representing
classname)?

Its an identifier for the type of event you have. You could use class
name. Event store is non-opinionated on this.

What do you put in Metadata, besides info for deserializing event data?

CorrelationId,
CausastionId,
EffectiveDataTime,
User,
Server,
Security Context

There are thousands of things you may want (anything associated with
an event but not part of the event). What you use is highly
application specific

Is json metadata the only way to use metadata in eventstore projections?

I don't understand what this asking.

I just wanted to know what formats the JS projections can read. I thought
they could filter and aggregate on data contained within the metadata field
but not eventdata.

"
I just wanted to know what formats the JS projections can read. I
thought they could filter and aggregate on data contained within the
metadata field but not event data."

They only natively understand json (for both events and metadata)

If you were to put it in say Idar's serialization format, how would it
know how to make a javascript object out of it?

There is also a Raw field that it puts the raw data in