Litote/kmongo

setTo is not using kotlinx.serialization @SerialName when working with enuns

Closed this issue · 1 comments

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