commanded / recipes

Commanded recipes
12 stars 1 forks source link

[Recipe] Event type name provider #21

Open slashdotdash opened 3 years ago

slashdotdash commented 3 years ago

How do I use a different event type name provider than the default which uses the Elixir module name?

For example, use account_closed instead of Elixir.MyApp.Account.Events.AccountClosed

philipgiuliani commented 2 years ago

Hi @slashdotdash, is this actually possible. If yes... How? 😄

yordis commented 2 years ago

This could be closed now, https://hexdocs.pm/commanded/Commanded.EventStore.TypeProvider.html

config :commanded, type_provider: MyTypeProvider