isMapNotEmpty

open fun Field<T, Map<String, *>>.isMapNotEmpty()(source)

Matches documents in which a map is not empty.

Example

Return all users that have one or more grades.

class User(
val name: String?,
val grades: Map<String, Int>
)

collection.find {
User::grades.isMapNotEmpty()
}

See also