MongoDB request DSL • opensavvy.ktmongo.dsl.query • FilterQuery • isEmpty
isEmpty¶
open fun Field<T, Collection<*>>.isEmpty()
Matches documents in which an array is empty or absent.
Example¶
Return all users that have no grades (either an empty array, or the grades
field is absent):
See also¶
open fun KProperty1<T, Collection<*>>.isEmpty()