@Transient from kotlin serialization does not deserialize data?
ronjunevaldoz opened this issue · 1 comments
ronjunevaldoz commented
In the below data class, for example using aggregation to get the data, the @transient field is expected to return a value from mongodb data. But it doesn't work.
@Serializable
data class Test(
val readWrite : String,
@Transient readOnly: String
)
zigzago commented
Not sure to understand the use case. If I look at the doc: https://kotlinlang.org/api/kotlinx.serialization/kotlinx-serialization-core/kotlinx.serialization/-transient/