Litote / kmongo

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

De-deprecate `@MongoId` #366

Closed akowal closed 2 years ago

akowal commented 2 years ago

@MongoId is actually pretty useful in cases when a class is stored in mongo as well as used as a response in REST API. At the moment kmongo forces id field to be named _id which makes it impossible to use with existing model classes that already use kotlinx.serialization and can't have id field be renamed to _id.

akowal commented 2 years ago

nvm, I missed that it's doable with a custom IdController