Litote / kmongo

[deprecated] KMongo - a Kotlin toolkit for Mongo
https://litote.org/kmongo/
Apache License 2.0
781 stars 74 forks source link

How to select which serialization framework KMongo should use? #340

Closed Gieted closed 2 years ago

Gieted commented 2 years ago

The docs don't mention, how to select which serialization solution KMongo should use. I would like to use kotlinx.serialization. Sometimes KMongo appears to pick it up automatically, and sometimes I see Jackson-related exceptions.

Gieted commented 2 years ago

It turns out you have to add this dependency to the classpath: org.litote.kmongo:kmongo-serialization:4.5.1, which for some reason was never mentioned in the docs.

zigzago commented 2 years ago

Look at this doc paragraph https://litote.org/kmongo/quick-start/#object-mapping-engine