Skip to content

Selector

sealed interface Selector

Represents a unique selector in a multi-selector segment.

Selectors are generally obtained using the methods on BsonPath.Root that return a PathOrSelector.

Inheritors

Functions

findInParent

@LowLevelApi



abstract fun findInParent(reader: BsonValueReader): Sequence<BsonValueReader>

Applies the filters described by this path on the reader.

Implementation notes

The reader is the parent node: one of the results of matching the parent path to the root node. It is not the root node itself, unlike with findIn.