Closed urosjarc closed 1 year ago
Which mapping-engine variant of KMongo are you using? Jackson, KotlinX-serialization or native?
Here is how to differentiate between them: https://litote.org/kmongo/quick-start/#object-mapping-engine
As far as I understand the documentation different steps need to be done to add a custom codec/jackson-module/serializer, you can read this here:
I have used jackson, but soon I realized that jackson is giving me so much problems on ktor server that I joust gave up and use kotlinx-serialization...
I want to create custom codec for
DateTimePeriod
...And then register my custom codec before creating client like it says in documentation...
But custom codec is not being used by the kmongo :( ...