MongoDB request DSL • opensavvy.ktmongo.dsl.path • at
at
infix inline fun <T> ERROR CLASS: Symbol not found for Bson.at(field: Field<*, T>): T
Finds the first value that matches path in a given Bson.
Example
val document: Bson = …
val bar: String = document at (User::profile / Profile::name)
will return the value of the field profile.name.
See also
Throws
- NoSuchElementException
-
If no element is found matching the path.