pathOf

open override fun pathOf(property: KProperty1<*, *>): Path(source)

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.