MongoDB request DSL • opensavvy.ktmongo.dsl.aggregation.operators • TypeValueOperators • isArray
isArray¶
Determines if this value is an array.
Example¶
class User(
val data: String,
)
collection.aggregate()
.project {
Field.unsafe<Boolean>("dataIsArray") set of(User::data).isArray
}
External resources¶
See also¶
TypeValueOperators.type
Get a value's type.