MongoDB request DSL • opensavvy.ktmongo.dsl.aggregation.operators • TypeValueOperators
TypeValueOperators¶
interface TypeValueOperators : ValueOperators
Operators to interact with type information.
To learn more about aggregation operators, view AggregationOperators
.
Inheritors¶
Properties¶
context
¶
abstract val context:
field
¶
Converts a Kotlin property into a Field
.
isArray
¶
Determines if this value is an array.
isNumber
¶
Determines if this value is a number.
type
¶
Gets the BsonType of the current value.
Functions¶
div
¶
Refers to field
as a nested field of the current value.
Refers to field
as a nested field of the current value.
Refers to child
as a nested field of the current field.
get
¶
Refers to a specific item in an array, by its index.
Refers to a specific item in a map, by its name.
of
¶
Refers to a Kotlin value
within an aggregation value
.
Refers to a BsonType within an aggregation value
.
Refers to a field
within an aggregation value
.
Refers to a field
within an aggregation value
.
toBoolean
¶
Converts this value to a BsonType.Boolean.
toDouble
¶
Converts this value to a BsonType.Double.
toInstant
¶
Converts this value to an Instant (BsonType.Datetime).
toInt
¶
Converts this value to an Int
(BsonType.Int32).
toLong
¶
Converts this value to an Long
(BsonType.Int64).
toObjectId
¶
Converts this value to an ObjectId.
toText
¶
Converts this value to a String
.
toUuid
¶
Converts a string value to a Uuid (BsonType.BinaryData).