isNotUndefined

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

Deprecated

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

Selects documents for which the field is not undefined.

Example

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

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

External resources

See also