doesNotExist
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()
}
}
Content copied to clipboard
External resources
See also
Shorthand.
Opposite.
Only matches elements that are specifically null
.