kmongo / org.litote.kmongo / kotlin.String

Extensions for kotlin.String

bson

Get the org.bson.BsonValue of this string.

val String.bson: BsonDocument

formatJson

Format this string to remove space(s) between $ and next char

fun String.formatJson(): String

from

Builds Bson from this String format and the specified expression.

infix fun String.from(expression: Any): Bson

projection

The projection of the property.

val String.projection: String

toId

Create a new Id from the current String.

fun <T> String.toId(): Id<T>

variable

Defines a Variable projection (ie $$"myString"")

val String.variable: String