We are using MongoDB as event store and Jackson for serialization/deserialization.
Our idea is to use domainevents collection as History/Audit store instead of creating a separate collection for it. We plan to customize JacksonSerializer to store serializedPayload as Object (key-value pair) instead of String so that we will be able to query domainevents collection directly using MongoDB template by filtering on different payload fields.
Do you recommended this approach or is it better to create a separate collection for Audit/History?