MongoDB request DSL • opensavvy.ktmongo.dsl.path • PropertyNameStrategy • pathOf
pathOf¶
abstract fun pathOf(property: KProperty1<*, *>): Path
Generates the name of a property.
This is used by the DSL to allow configuring how the notation Foo::bar / Bar::baz is converted into a MongoDB path.
For example, an implementation could add support for the KMongo annotation @BsonId to rename the field _id.