gtNotNull

open fun gtNotNull(value: T?)(source)

Selects documents for which this field has a value strictly greater than value.

If value is null, the operator is not added (all elements are matched).

Example

class User(
val name: String,
val age: Int?
)

collection.find {
User::age { gtNotNull(18) }
}

External resources

See also

Learn more about the 'notNull' variants