setTo is not using kotlinx.serialization @SerialName when working with enuns
Closed this issue · 1 comments
sanford-ware2go commented
When updating an enum property (@SerialName("completed") COMPLETED,
) using typed queries, it gets serialized as "COMPLETED" instead of "completed".
update code:
collection.findOneAndUpdate(filter, set(EntityWithStatus::status setTo EntityWithStatus.Status.COMPLETED), options)
version: 4.5.1
zigzago commented
I do not reproduce the bug. See related unit test a842ffc#diff-3e4b9b6781a3b635068bda24050724ccf4eb40e6af653190ecef7c400837598eR51