doesNotExist

abstract fun doesNotExist()(source)

Matches documents that do not contain the specified field. Documents where the field if null are counted as existing.

Example

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

collection.find {
User::name {
doesNotExist()
}
}

External resources

See also

Only matches elements that are specifically null.