kmongo
kmongo copied to clipboard
id serialization
I have make interface for entities (kotlinx serialization)
interface WithId {
val id: String //I use value class here actually
}
All other entities inherits it
How to deal with _id globally without @SerialName("_id") everywhere ?
I would say this is more a kotlinx.serialization question (see https://github.com/Kotlin/kotlinx.serialization/issues/33). I think it's not feasible for now.