exists
Matches documents that contain the specified field, including values where the field value is null
.
Example
class User(
val name: String?,
val age: Int,
)
collection.find {
User::age.exists()
}
Content copied to clipboard
External resources
See also
Opposite.
Identical, but does not match elements where the field is null
.