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.
3
votes
Mervyn McCreight
shared this idea