diff --git a/driver-kotlin-extensions/src/main/kotlin/com/mongodb/kotlin/client/model/Properties.kt b/driver-kotlin-extensions/src/main/kotlin/com/mongodb/kotlin/client/model/Properties.kt index b35b44d4d93..fc8a4e94e87 100644 --- a/driver-kotlin-extensions/src/main/kotlin/com/mongodb/kotlin/client/model/Properties.kt +++ b/driver-kotlin-extensions/src/main/kotlin/com/mongodb/kotlin/client/model/Properties.kt @@ -67,7 +67,7 @@ public operator fun KProperty1?>.div( * - BsonProperty annotation * - Property name */ -internal fun KProperty.path(): String { +public fun KProperty.path(): String { return if (this is KPropertyPath<*, T>) { this.name } else {