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