Retrieve event types and stream categories used in a store?

We are thinking about enabling some level of discovery to performed on EventStore that can be consumed by a Data Catalog for downstream consumers in our organization.

The $by_event_type and $streams_by_category exist, so the data is there.

How can we programatically get the event types and stream categories?

Do you mean the actual events in these streams?

I want to know:

  • What event-types do I have in my store

  • What stream categories do I have in my store

$streams_by_category system projection might help you for the stream categories.
As for knowing all the event types, I don’t know how to do that sorry.