Take possible SerialName annotation into account for the query DSL (Kotlin)
Hey,
I'm talking about the kotlin-driver (there was no kotlin selectable in the dropdown, so I chose "Java" since the kotlin driver is based on the java driver).
When using the kotlin-driver with kotlinx.serialization it's a bit complicated to write refactoring-safe queries, because when using the KProperty.name reference like in the examples of the documentation a possible @SerialName
annotation is not considered.
I'd like an API matching what KMongo provided that you can just reference the KPropery, and the driver under the hood decides whether to choose just the name
or the value of a possible SerialName annotation.
![](https://secure.gravatar.com/avatar/4cb43fadff79878b5d60949d14fed209?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
AdminAshni (Admin, MongoDB) commented
Hi Mervyn, appreciate you filing this request.
I've created https://jira.mongodb.org/browse/JAVA-5484 to track this feature request. I'd recommend that you follow along there for updates, and if there's anything you'd like to add about your specific use case, please add it in the comments of that ticket. Thank you.