isUndefined

open fun Field<T, *>.isUndefined()(source)
open fun KProperty1<T, *>.isUndefined()(source)

Deprecated

This functionality is deprecated in the BSON specification. See https://bsonspec.org/spec.html

Selects documents for which the field is undefined.

Example

class User(
val name: String,
val age: Int?,
)

collection.find {
User::age.isUndefined()
}

External resources

See also