-
Notifications
You must be signed in to change notification settings - Fork 154
Open
Description
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
jsonbdata type[…]
To enable native JSON support you need to configure your event store to use thejsonbdata type. You must also use theEventStore.JsonbSerializerserializer, 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.PostgresTypesReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels