kmongo / org.litote.kmongo / org.bson.Document

Extensions for org.bson.Document

findValue

Find the value for the specified path from the document.

fun <T> Document.findValue(property: KProperty<T?>): T?
fun <T> Document.findValue(path: String): T?