Kotlin BSON • Multiplatform abstraction for different BSON implementations • opensavvy.ktmongo.bson • BsonPath • PathOrSelector
PathOrSelector¶
sealed interface PathOrSelector : BsonPath, BsonPath.Selector
Marker interface for types that implement both BsonPath and Selector.
These types are mainly found as return types in the BsonPath.Root object.
Properties¶
all¶
Points to all children of a document.
parent¶
The parent path of this path: the same path without the last segment.
Functions¶
any¶
open fun any(vararg selectors: BsonPath.Selector): BsonPath
Allows specifying multiple selectors.
findIn¶
@LowLevelApi
abstract fun findIn(reader: BsonValueReader): Sequence<BsonValueReader>
Applies the filters described by this path on the reader.
findInParent¶
@LowLevelApi
abstract fun findInParent(reader: BsonValueReader): Sequence<BsonValueReader>
Applies the filters described by this path on the reader.
get¶
reversed¶
Iterates a BsonArray in the reversed order, starting from the end.
sliced¶
open fun sliced(range: IntProgression): BsonPath