kmongo icon indicating copy to clipboard operation
kmongo copied to clipboard

id serialization

Open Lewik opened this issue 3 years ago • 1 comments

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 ?

Lewik avatar Aug 02 '22 05:08 Lewik

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.

zigzago avatar Aug 07 '22 16:08 zigzago