isNumber
Determines if this value is a number.
The following types are considered numbers:
BsonType.Int32
BsonType.Int64
BsonType.Double
BsonType.Decimal128
Example
class User(
val data: String,
)
collection.aggregate()
.project {
Field.unsafe<Boolean>("dataIsNumber") set of(User::data).isNumber
}
Content copied to clipboard
External resources
See also
Get a value's type.