Root

object Root : BsonPath(source)

The root of a BsonPath expression.

All BSON paths start at the root. For example, BsonPath["foo"] refers to the field "foo".

For more information, see BsonPath.

Functions

Link copied to clipboard
Link copied to clipboard
open operator fun get(index: Int): BsonPath

Points to the element at index in a BsonArray.

open operator fun get(field: String): BsonPath

Points to a field in a Bson document.

Link copied to clipboard
fun parse(@Language(value = "JSONPath") text: String): BsonPath

Parses an RFC-9535 compliant string expression into a BsonPath instance.

Link copied to clipboard
open override fun toString(): String