MongoDB request DSL • opensavvy.ktmongo.dsl.query • FilterQuery • exists
exists¶
Matches documents that contain the specified field, including values where the field value is null
.
Example¶
External resources¶
See also¶
-
FilterQuery.doesNotExist
Opposite. -
FilterQuery.isNotNull
Identical, but does not match elements where the field isnull
.
open fun KProperty1<T, *>.exists()
Matches documents that contain the specified field, including values where the field value is null
.
Example¶
External resources¶
See also¶
-
FilterQuery.doesNotExist
Opposite. -
FilterQuery.isNotNull
Identical, but does not match elements where the field isnull
.