select
Finds all values that match path in a given BSON document.
Example
val document: Bson = …
document.select<String>(BsonPath["foo"]["bar"]).firstOrNull()Content copied to clipboard
will return the value of the field foo.bar.
See also
Learn more about BSON paths.
If you're only interested about a single element. See also at.