MongoDB request DSL • opensavvy.ktmongo.dsl.query • FilterQueryPredicate • doesNotExist
doesNotExist¶
abstract fun doesNotExist()
Matches documents that do not contain the specified field. Documents where the field if null
are counted as existing.
Example¶
External resources¶
See also¶
-
FilterQuery.doesNotExist
Shorthand. -
FilterQueryPredicate.exists
Opposite. -
FilterQueryPredicate.isNull
Only matches elements that are specificallynull
.