Skip to content

MongoDB request DSLopensavvy.ktmongo.dsl.queryFilterQueryisNotUndefined

isNotUndefined

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

Deprecated

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

open fun KProperty1<T, *>.isNotUndefined()

Deprecated

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