A note was recently added in the Getting started guide:
Note: To use an EventStore with Commanded you should configure the event store to use Commanded's JSON serializer which provides additional support for JSON decoding:
config :my_app, MyApp.EventStore, serializer: Commanded.Serialization.JsonSerializer
The same guide also states:
Using the jsonb data type
[…]
To enable native JSON support you need to configure your event store to use the jsonb data type. You must also use the EventStore.JsonbSerializer serializer, to ensure event data and metadata is correctly serialized to JSON, […]
So, what is the recommended configuration when using the event store with both Commanded and jsonb? Is the following correct?
config :my_app, MyApp.EventStore,
column_data_type: "jsonb",
serializer: Commanded.Serialization.JsonSerializer,
types: EventStore.PostgresTypes
A note was recently added in the Getting started guide:
The same guide also states:
So, what is the recommended configuration when using the event store with both Commanded and
jsonb? Is the following correct?